By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
Records: 0 Duplicates: 0 Warnings: 0
Records: 0 Duplicates: 0 Warnings: 0
Cannot add or update a child row: a foreign key constraint fails (`fiddle`.`test1`, CONSTRAINT `test1_ibfk_1` FOREIGN KEY (`t2_id`) REFERENCES `test2` (`t2_id`))
Cannot add or update a child row: a foreign key constraint fails (`fiddle`.`test2`, CONSTRAINT `test2_ibfk_1` FOREIGN KEY (`t1_id`) REFERENCES `test1` (`t1_id`))
Rows matched: 1 Changed: 1 Warnings: 0
| t1_id | t2_id |
|---|---|
| 1 | 11 |
| t1_id | t2_id |
|---|---|
| 1 | 11 |