foreign key constraint to itself

2002-05-14 Thread Lisa Tong
Hi, I am just wondering can I create foreign key constraint to itself in mySQL innodb (the mySQL 3.23.50 release)? Let's say we have a table: test_table_01 (id integer, pid integer) type = innodb. Can I create a foreign key on pid and reference to test_table_01 (id)? Thanks,

Re: foreign key constraint to itself

2002-05-13 Thread Heikki Tuuri
Lisa, - Original Message - From: "Lisa Tong" <[EMAIL PROTECTED]> Newsgroups: mailing.database.mysql Sent: Tuesday, May 14, 2002 5:29 AM Subject: foreign key constraint to itself > > Hi, > > I am just wondering can I create foreign key constraint to itself

foreign key constraint to itself

2002-05-13 Thread Lisa Tong
Hi, I am just wondering can I create foreign key constraint to itself in mySQL innodb (the mySQL 3.23.50 release)? Let's say we have a table: test_table_01 (id integer, pid integer) type = innodb. Can I create a foreign key on pid and reference to test_table_01 (id)? Thanks,