Natedawg Posted December 25, 2003 Share Posted December 25, 2003 I would like a number to be made to go with each row in my table. It must be a different number for every row, and I can\'t have to type it in manually. Is auto_increment the answer? If so, how do I do it? If not, what should I do? Link to comment https://forums.phpfreaks.com/topic/1553-auto_increment-what/ Share on other sites More sharing options...
shortkid422 Posted December 25, 2003 Share Posted December 25, 2003 ya, it is. each number will increase by one, so it would be 1,2,3,4,5,6... and so on. It will be increased everytime a row is added, so no work. Link to comment https://forums.phpfreaks.com/topic/1553-auto_increment-what/#findComment-5100 Share on other sites More sharing options...
Hokus Posted December 25, 2003 Share Posted December 25, 2003 Simply don\'t assign any value to the field you want to auto-increment, MySQL will do it for you. Link to comment https://forums.phpfreaks.com/topic/1553-auto_increment-what/#findComment-5101 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.