views:

31

answers:

1

i have a database that is in access and i am converting it to mysql

in access there is a type called autonumber. is there such a thing in mysql? if not, what would be an easy way to implement such a type (or not necessarily implement the type but to have the same functionality) ?

+1  A: 

Yes - have a look here. You can apply the AUTO_INCREMENT attribute to a field.

TLiebe
Alternately, you can use the `SERIAL` type, which is a synonym for `BIGINT UNSIGNED NOT NULL AUTO_INCREMENT UNIQUE`
R. Bemrose
One could also create an ODBC DSN for a target MySQL database and export a Jet/ACE table with an Autonumber and see what the resulting data type is in MySQL.
David-W-Fenton