I have a category table in which one of the fields serves as a foreign key for the subcategory table. One field that serves as part of the primary key for each table is the language identifier. I need to update them in both tables. Basically, wherever the language id = x is in both tables, I need to set it to y.
When I try to update in any table, I get an "UPDATE statement that contradicts the REFERENCE .. constraint", which refers to the foreign key constraint.
How to update the language field in both of these tables?
derek source
share