|
[x]
Posted via EE Mobile
|
|
| Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again. |
|
|
|
|
Asked by gvector1 in MySQL Server
I have set up a foreign key between 2 tables.
Table A:
Column1
Column2
Column3
Table B:
Column1
Column2
Foreign Key on TableB.Column1->TableA.Col
umn2
The Foreign Key works when I try to delete a record from Table A.(I get an error message as expected).
When I try to update TableA.Column3 of a row that is tied to TableB by the foreign key, it updates with no warnings or errors.
I thought that there should also be constraints on updated a record that is tied to by a foreign key. What could be causing this to be allowed? Am I overlooking a setting.
Thanks,
Kendal
20091021-EE-VQP-81 - Hierarchy / EE_QW_3_20080625