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? Quote 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. Quote 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. Quote Link to comment https://forums.phpfreaks.com/topic/1553-auto_increment-what/#findComment-5101 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.