创建mysql主键ID的语句如下:

alter table tb add id int not null auto_increment, add primary key (id);

happy coding!