Mar
15
15
Foreign Key Reference more than 1 table
create table address(addr_No int not null, cust_no int not null, emp_no int not null, blah, blah, primary key(addr_No),
index(cust_No), index(emp_No),
Foreign Key(cust_No) references customer(cust_No),
Foreign Key(emp_No) references employee(emp_No));
Source : http://www.dbforums.com/ansi-sql/983522-foreign-key-referencing-more-than-1-table.html
There are no comments.