MySQL Forums
Forum List  »  InnoDB

Re: Referential Integrity not working
Posted by: John Kuiper
Date: February 10, 2009 02:16AM

CREATE TABLE test.tbl_order (
order_id MEDIUMINT(9) NOT NULL AUTO_INCREMENT,
ordr_name VARCHAR(20) DEFAULT NULL,
cust_id MEDIUMINT(9) DEFAULT NULL,
PRIMARY KEY (order_id),
CONSTRAINT tbl_order_FK1 FOREIGN KEY (cust_id)
REFERENCES test.tbl_customer(cust_id)
)
ENGINE = INNODB;

Options: ReplyQuote


Subject
Views
Written By
Posted
5509
October 30, 2008 08:36PM
Re: Referential Integrity not working
3414
February 10, 2009 02:16AM


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.