mysql 设置主键自增:
alter table table_name modify column_name int unsigned auto_increment;
注意:此属性列必须满足一下条件:
1) 是主键。
2) 是int类型。
3) 不能是其他关系的外键
mysql 设置主键自增:
alter table table_name modify column_name int unsigned auto_increment;
注意:此属性列必须满足一下条件:
1) 是主键。
2) 是int类型。
3) 不能是其他关系的外键