gevo12321 Posted June 23, 2007 Share Posted June 23, 2007 hi lets say i made a column in mysql for id numbers is there a way where it will automatically give me the next integer for an id every time i insert a new row? thank you Link to comment https://forums.phpfreaks.com/topic/56817-solved-consecutive-id/ Share on other sites More sharing options...
bubblegum.anarchy Posted June 23, 2007 Share Posted June 23, 2007 Define the id as an auto_increment CREATE TABLE repository ( id INT(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'unique record identifier', value TEXT NULL DEFAULT NULL COMMENT 'repository value', primary_key (id) ); Link to comment https://forums.phpfreaks.com/topic/56817-solved-consecutive-id/#findComment-280723 Share on other sites More sharing options...
gevo12321 Posted June 23, 2007 Author Share Posted June 23, 2007 thank you very much Link to comment https://forums.phpfreaks.com/topic/56817-solved-consecutive-id/#findComment-280731 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.