Jump to content

Foreign key issue


gerkintrigg

Recommended Posts

I'm trying to set a foreign key constraint using the following code:

`Van_No` CHAR( 3 ) NOT NULL,
Index (Van_No),
Constraint FK_Van_No FOREIGN KEY (Van_No) REFERENCES Van ( Van_No ) ON DELETE CASCADE,

 

Can you see why I'm getting a mysql error:

#1005 - Can't create table './da807682/Corporate_Booking.frm' (errno: 121) 

???

Thanks.

Link to comment
https://forums.phpfreaks.com/topic/85013-foreign-key-issue/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.