If I have a column in a table like this:
Will MySQL ever assign zero as the auto-increment value?
If so, in the create table statement, is there a way to set the starting value of an auto-increment column? Reading the MySQL manual I see that you can run an 'ALTER TABLE' statement to reset the auto-increment value to a specific number such as:
but, I that doesn't help because I want to ensure MySQL will never use zero for the auto-increment value.
Thanks,
Itshim
Code:
member_id int unsigned NOT NULL auto_increment
If so, in the create table statement, is there a way to set the starting value of an auto-increment column? Reading the MySQL manual I see that you can run an 'ALTER TABLE' statement to reset the auto-increment value to a specific number such as:
Code:
ALTER TABLE [i]tbl_name[/i]
AUTO_INCREMENT = [i]n[/i]
but, I that doesn't help because I want to ensure MySQL will never use zero for the auto-increment value.
Thanks,
Itshim