3
我在表中有一個電子郵件和cellPhone屬性,其中一個可以爲null,另一個不能爲null,我如何使約束阻止兩個值爲null?Oracle null約束
我在表中有一個電子郵件和cellPhone屬性,其中一個可以爲null,另一個不能爲null,我如何使約束阻止兩個值爲null?Oracle null約束
喜歡的東西:
CREATE TABLE mytable(
email varchar2(100),
cellphone varchar2(100),
constraint null_check
check (email is not null or cellphone is not null)
)