-
Problem with Foreign key?
Hello Friends ,This is Mallik,new to Mysql and new to this forum.i have problem with foreign key .i create tables using reference,but when we enter data into table it is accepting without refering to the referencing table.What i have to do?pls help me.
ur's
Mallik.
-
Because you created a (0,n)-relationship.
You just need to make it (1,n) by making that reference column NOT NULL.
Good luck!
-
More details would help, but it's probably because the default MyISAM tables don't support foreign key constraints. Use an InnoDB table instead.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
|