标签:
ALTER TABLE TableA ADD CONSTRAINT CK_BothDepartsNotNull CHECK (departA IS NOT NULL OR departB IS NOT NULL)
Constraint where both columns cannot be null, but one can
原文地址:http://www.cnblogs.com/drizzlewithwind/p/5853173.html