Foreign key of the table

I didn't care of the foreign key before, today I have find my problem with it.
The foreign key must be fllow some constraints.
For example, I have two tables, one named A and one named B. The B table has a column references of the column of A table, and this column in the A table must be a constraint of unique or primary.
Just my note.

你可能感兴趣的:(db foreign key)