Jump to content

Archived

This topic is now archived and is closed to further replies.

Natedawg

auto_increment? What?

Recommended Posts

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?

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

Simply don\'t assign any value to the field you want to auto-increment,

MySQL will do it for you.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.