On Tuesday 01 April 2003 09:04, Noel Wade wrote:

> I know its possible to use multiple fields for the primary key in a table
> i.e. "primary key(foo,bar)"
>
> Is it possible to do this with "unique" identifiers as well?  Like "unique
> key(foo,bar)" ??
>
> I already have a primary key on a table, but I'd also like to force two
> fields to form a unique combination (no two records should have the same
> foo & bar values).

Yes, it's possible.



-- 
For technical support contracts, goto https://order.mysql.com/?ref=ensita
This email is sponsored by Ensita.net http://www.ensita.net/
   __  ___     ___ ____  __
  /  |/  /_ __/ __/ __ \/ /    Egor Egorov
 / /|_/ / // /\ \/ /_/ / /__   [EMAIL PROTECTED]
/_/  /_/\_, /___/\___\_\___/   MySQL AB / Ensita.net
       <___/   www.mysql.com




-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:    http://lists.mysql.com/[EMAIL PROTECTED]

Reply via email to