0

Mysql foriegn key/references

A is a foreign key referencing B in table C. For this . Create table tab(A number (2) references C(B) ); Or Create table tab(A number (2 ) ,Foreign key(A) references C(B)); Which is better and whats it adva advantages?

30th Oct 2021, 4:32 AM
sid
sid - avatar
1 Antwort
+ 2
If you still haven't found the answer, look here https://stackoverflow.com/questions/14230892/difference-between-using-references-with-and-without-foreign-key It's easier than me retelling the MySQL documentation :)
14th Nov 2021, 4:25 PM
Alexey Kopyshev
Alexey Kopyshev - avatar