抱歉,如果我弄错了术语。如何在 MSSQL Server 2005 中定义约束以根据另一列强制一列的唯一性?
例如考虑最后两列:
1 A 1
2 A 2
3 A 2 <- Disallow because '2' has already appeared alongside 'A'
4 B 1
5 B 2
抱歉,如果我弄错了术语。如何在 MSSQL Server 2005 中定义约束以根据另一列强制一列的唯一性?
例如考虑最后两列:
1 A 1
2 A 2
3 A 2 <- Disallow because '2' has already appeared alongside 'A'
4 B 1
5 B 2