1SET foreign_key_checks = 0;
2UPDATE languages SET id='xyz' WHERE id='abc';
3UPDATE categories_languages SET language_id='xyz' WHERE language_id='abc';
4SET foreign_key_checks = 1;
1
2 FOREIGN KEY (child_col1, child_col2, ... child_col_n)
3 REFERENCES parent_table (parent_col1, parent_col2, ... parent_col_n)
4 ON DELETE SET NULL
5 [ ON UPDATE { NO ACTION | CASCADE | SET NULL | SET DEFAULT } ]
6