📜  引用表的给定键没有唯一约束匹配 - 无论代码示例

📅  最后修改于: 2022-03-11 14:55:50.410000             🧑  作者: Mango

代码示例1
It's because the name column on the bar table does not have the UNIQUE constraint.

So imagine you have 2 rows on the bar table that contain the name 'ams' and you insert a row on baz with 'ams' on bar_fk, which row on bar would it be referring since there are two rows matching?