📌  相关文章
📜  无法添加或更新子行:外键约束失败 - 无论代码示例

📅  最后修改于: 2022-03-11 15:00:05.658000             🧑  作者: Mango

代码示例2
SELECT child_table.* 
FROM child_table 
LEFT JOIN parent_table 
  ON parent_table.referenced_column = child_table.referencing_column 
WHERE parent_table.referenced_column IS NULL


-- Delete all data from output of that query