SQL添加自增id做为主健

ALTER TABLE tbl1 ADD id INT PRIMARY KEY AUTO_INCREMENT FIRST;

参考:Insert auto increment primary key to existing tablesql

相关文章
相关标签/搜索