![](/img/trans.png)
[英]Select data from two table, where child table's two column have same foreign key
[英]is it possible for two rows of a column (primary key) of the table to have same character/value with same foreign key(another column)
主键的逻辑是,它必须为每行数据包含一个唯一值 ,因此不可能。 如果您尝试放置相同的PK,它将引发类似以下错误
违反PRIMARY KEY约束“ PK_table”。 无法在对象'dbo.table中插入重复键。 重复的键值为(aaa)。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.