标签: sql sqlite
我试图通过以下方式在SQLite中设置检查约束DEFERRABLE INITIALLY DEFERRED:
CONSTRAINT CheckReference CHECK (ReferenceID IN (SELECT ReferenceID FROM HasReference)) DEFERRABLE INITIALLY DEFERRED
但这会产生错误。如何在SQLite中设置CHECK约束DEFERRABLE INITIALLY DEFERRED?
答案 0 :(得分:0)
如CREATE TABLE syntax所示,只能延迟外键约束。