SQLite设置检查约束DEFERRABLE INITIALLY DEFERRED

时间:2017-03-07 15:14:13

标签: sql sqlite

我试图通过以下方式在SQLite中设置检查约束DEFERRABLE INITIALLY DEFERRED:

CONSTRAINT CheckReference CHECK (ReferenceID IN (SELECT ReferenceID FROM HasReference))
DEFERRABLE INITIALLY DEFERRED

但这会产生错误。如何在SQLite中设置CHECK约束DEFERRABLE INITIALLY DEFERRED?

1 个答案:

答案 0 :(得分:0)

CREATE TABLE syntax所示,只能延迟外键约束。