SQL 错误 [1075] [42000]: Incorrect table definition; there can be only one auto column and it must be defined as a key
意思是:设为自增的字段必须是主键,而我用的是客户端,表是批量从SQLServer复制到MySQL的,导致最后MySQL表中主键丢失,设置id为主键并设为自增后,保存成功,问题解决。
SQL 错误 [1075] [42000]: Incorrect table definition; there can be only one auto column and it must be defined as a key
意思是:设为自增的字段必须是主键,而我用的是客户端,表是批量从SQLServer复制到MySQL的,导致最后MySQL表中主键丢失,设置id为主键并设为自增后,保存成功,问题解决。