SQL添加自增id做爲主健

ALTER TABLE tbl1 ADD id INT PRIMARY KEY AUTO_INCREMENT FIRST;

參考:Insert auto increment primary key to existing tablesql

相關文章
相關標籤/搜索