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 Quote 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) ); Quote 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 Quote Link to comment https://forums.phpfreaks.com/topic/56817-solved-consecutive-id/#findComment-280731 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.