MySQL Forums
Forum List  »  Newbie

Re: Multiple references of a PK
Posted by: Peter Brawley
Date: February 22, 2012 11:27AM

drop table if exists c,b,a;
create table a( aid int primary key) engine=innodb;
create table b(bid int primary key, aid int, foreign key(aid) references a(aid)) engine=innodb;
create table c(cid int primary key, aid int, foreign key(aid) references a(aid)) engine=innodb;

PB
http://www.artfulsoftware.com

Options: ReplyQuote


Subject
Written By
Posted
February 22, 2012 09:58AM
Re: Multiple references of a PK
February 22, 2012 11:27AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.