> if i set a field as a primary key, does it automatically make sure its
> unique or should i declare a UNIQUE constraint as well? or will primary do
> the job by itself.
a primary key is always unique. No need to give it an extra unique index.
Greetings,
Ansgar
http://www.mysqlfront.de/
---------------------------------------------------------------------
Before posting, please check:
http://www.mysql.com/manual.php (the manual)
http://lists.mysql.com/ (the list archive)
To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php