Link to home
Start Free TrialLog in
Avatar of fred2k3
fred2k3

asked on

Specifying auto number seed and step values in MySql when using the Create Table command

How can you specify the seed and step values when creating an autonumber using the create table command?

Thanks

Fred
ASKER CERTIFIED SOLUTION
Avatar of Guy Hengel [angelIII / a3]
Guy Hengel [angelIII / a3]
Flag of Luxembourg image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
You actually can control this behavior - but not at the CREATE TABLE level.  You can set server parameters (auto_increment_increment and auto_increment_offset) that control this:

http://dev.mysql.com/doc/refman/5.0/en/server-system-variables.html

Obviously, this impacts all tables.

Hope that helps.
Avatar of fred2k3
fred2k3

ASKER

cheers guys