Gossamer Forum
Home : General : Perl Programming :

MySQL AutoIncrement

Quote Reply
MySQL AutoIncrement
If you set a column to auto-increment is it really necessary to set it as unique also or will auto-increment not allow duplicates?
Quote Reply
Re: [RedRum] MySQL AutoIncrement In reply to
When you define a field as auto_increment, it has to be primary key (so then it won't allow duplicates, unless of course you define more than one primary key).


Adrian