Add a field to a database table and then set this field as the primary key auto-increment sql statement

alter table stu add column yid int auto_increment not null,add primary key(yid);

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325807962&siteId=291194637