【发布时间】:2015-08-05 10:24:14
【问题描述】:
检查约束的“IN”列表中可以添加多少个值?
alter table Customer_Part_1
add check(cust_Key in ('cust1', 'cust2', 'cust3', 'cust4', 'cust5' ................. ?? ))
【问题讨论】:
-
具有外键约束的第二个表是一个非常更好的解决方案
-
我相信它是无限的 - 请参阅 stackoverflow.com/questions/1009706/…,尽管它可能是检查约束中的不同限制。
标签: database postgresql