我的桌子:
CREATE TABLE sales (ord INTEGER NOT NULL, ship INTEGER NOT NULL); ALTER TABLE sales ADD CONSTRAINT order_check CHECK(ord < 10);
然后我禁用了CONSTRAINT:
CONSTRAINT
ALTER TABLE sales NOCHECK CONSTRAINT ALL; INSERT INTO sales VALUES(10,1) SELECT * FROM sales
CONSTRAINT现在如何启用所有功能?
每个MSDN文档:
ALTER TABLE sales CHECK CONSTRAINT ALL;