mysql id self-increment modification

mysql modifies the id to auto-increment:

  alter table table name modify column column name type not null auto_increment ;

  例: alter table users modify column id int(18) not null auto_increment;

 

mysql removes the auto-increment id:

 alter table table name modify column column name type not null;

  例:alter table users modify column id int(18) not null;

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326643409&siteId=291194637