Blog
Developers
Careers
Support
Contact
Gossamer Threads
Solutions
Results
About
Mailing Lists
Resource Centre
Forum
Tools
Home
Who's Online
Tags
Favourites
Login
Forum Search
(
Advanced Search
)
This forum
This category
All forums
for
Home
:
General
:
Perl Programming
:
MySQL AutoIncrement
Previous Thread
Next Thread
Print Thread
View Threaded
Nov 13, 2001, 12:25 PM
Paul
Veteran
(19537 posts)
Nov 13, 2001, 12:25 PM
Post #1 of 2
Views: 2124
Shortcut
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?
Nov 13, 2001, 2:09 PM
brewt
Staff
(4101 posts)
Nov 13, 2001, 2:09 PM
Post #2 of 2
Views: 2054
Shortcut
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
Previous Thread
Next Thread
Print Thread
View Threaded