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.
我有 4 个表,每个表都有一个名为FormulaToken (nvarchar(250)).
FormulaToken (nvarchar(250))
当用户FormulaToken在任何实体中输入新值(连接到这 4 个表之一)时,我需要检查该值在所有 4 个表中是否唯一。
FormulaToken
这该怎么做?
找到了解决方案。我没有检查所有 4 个表中一个字段的值,而是将该字段提取到它自己的表中并将其设置为唯一索引。