Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

foreign key constraint

Status
Not open for further replies.

venky

Programmer
Jun 7, 1999
5
0
0
US
Visit site
hi,<br>
<br>
I am experiencing problems while implementing foreign key<br>
columns in tables . The problem is that even after giving<br>
the references clause in the foreign table the column <br>
allows values that are not there in the master table.<br>
<br>
i am using references master_table( primary_key_col ) <br>
match full . <br>
any immediate replies will be appreciated.<br>
<br>
venkatesh
 
<br>
The mysql manual on foreign keys. My understanding is they're not actually implemented. It'll accept the syntax, but calling it a foreign key, and setting references won't make it any different than any other column.<br>
<br>
Later on in the manual ( this note:<br>
"The FOREIGN KEY, CHECK and REFERENCES clauses don't actually do anything. The syntax for them is provided only for compatibility, to make it easier to port code from other SQL servers and to run applications that create tables with references."<br>
<br>
You should really have read this already. It's a very useful manual.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top