san <[EMAIL PROTECTED]> wrote:
> 
> Is it possible to create a composite  foreign key (on multiple columns 
> as in primary key enabled tables) in a table.
> 
> MySQl manuals defines the syntax as:
> 
> The syntax of a foreign key constraint definition in InnoDB:
> 
> [CONSTRAINT symbol] *FOREIGN KEY (index_col_name, ...)*
>                  REFERENCES table_name (index_col_name, ...)
>                  [ON DELETE {CASCADE | SET NULL | NO ACTION
>                              | RESTRICT}]
>                  [ON UPDATE {CASCADE | SET NULL | NO ACTION
>                              | RESTRICT}]
> 
> 
> 

Yes, you can do it.



-- 
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