Reorder id in mysql

  1. Delete the primary key id
    alter table experts_title drop id
    (experts_title is the table name)
  2. Add id field and other information to this table again
    alter table experts_title add id int(11) primary key
    auto_increment first

Guess you like

Origin blog.csdn.net/qq_45619283/article/details/114240618