各位好:
使用mysql,其中一张表是部门表,有字段id,deptId,deptName.
我想把id设为自增长,deptId设为主键,为什么总是报错?#1075 - Incorrect table definition; there can be only one auto column and it must be defined as a key
怎么解决?各位
...全文
35115打赏收藏
mysql中主键、自增长问题
各位好: 使用mysql,其中一张表是部门表,有字段id,deptId,deptName. 我想把id设为自增长,deptId设为主键,为什么总是报错?#1075 - Incorrect table definition; there can be only one auto column and it must be defined as a key 怎么解决?各位