Just found this added the name:

ALTER TABLE `mytable` 
ADD FOREIGN KEY `fk_mytable_id` ( `id` ) 
REFERENCES `othertable` ( `id` );

I thought I had tried that - obviously not.
-- 
View this message in context: 
http://www.nabble.com/Add-foreign-key-tf2950373.html#a8251427
Sent from the MySQL - General mailing list archive at Nabble.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