Re: Remove - Foreign key constraint in innodb

2010-02-25 Thread Jesper Wisborg Krogh
An example how to delete a foreign key from an InnoDB table: test> CREATE TABLE table_1 (id int unsigned NOT NULL auto_increment PRIMARY KEY) ENGINE=InnoDB; Query OK, 0 rows affected (0.56 sec) test> CREATE TABLE table_2 (table1_id int unsigned NOT NULL, FOREIGN KEY (table1_id) REFERENCES t

Re: Remove - Foreign key constraint in innodb

2010-02-25 Thread Jim Lyons
Yes - you can drop a foreign key constraint, use the 'alter table ... drop foreign key ...' command. If you get an error message, post the error message. On Thu, Feb 25, 2010 at 6:03 AM, Vikram A wrote: > Hi, > > I tried to remove foreign key constraint in innodb table. > > I tried with differe