Page 1 of 1

auto-increment???

Posted: Tue Jun 18, 2002 1:16 pm
by axel
Hello There,

I guess this is a silly question, but I ask it anyway: A tutorial told me to set the field for the ID to auto-increment. I know how to do it, but I could not find any clues what auto-increment means and what it does with the data in the table. I've checked the mysql-manual and even searched the web with Google to find an answer. Maybe I'm the only one who doesn't know. So please help me.

Thanks, Axel

Posted: Tue Jun 18, 2002 1:42 pm
by twigletmac
In an auto-incrementing column the value is automatically incremented by one each time a new insert is done.
mysql documentation wrote:The AUTO_INCREMENT attribute can be used to generate an unique identity for new rows
Source: http://www.mysql.com/doc/e/x/example-AU ... EMENT.html

Mac