Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有带有 Id、FkAnotherObject 和字符串的示例“对象”。我必须使用哪个属性才能在表中拥有唯一的字符串。有什么选择吗?
unique="true"应该做的伎俩:-)
unique="true"
或者,unique-key允许您创建多列唯一约束。
unique-key