kpetsche20 Posted June 30, 2008 Share Posted June 30, 2008 How do I make a MySQL column Auto_increment once I've already created the table Link to comment https://forums.phpfreaks.com/topic/112633-how-do-i-make-a-mysql-column-auto_increment-once-ive-already-created-the-table/ Share on other sites More sharing options...
br0ken Posted June 30, 2008 Share Posted June 30, 2008 ALTER TABLE tblTable MODIFY id INT AUTO_INCREMENT PRIMARY KEY Link to comment https://forums.phpfreaks.com/topic/112633-how-do-i-make-a-mysql-column-auto_increment-once-ive-already-created-the-table/#findComment-578500 Share on other sites More sharing options...
fenway Posted July 2, 2008 Share Posted July 2, 2008 Assuming it's NOT NULL already..... and it should be UNSIGNED, too. Link to comment https://forums.phpfreaks.com/topic/112633-how-do-i-make-a-mysql-column-auto_increment-once-ive-already-created-the-table/#findComment-579916 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.