1.创建约束
CREATE CONSTRAINT ON (p:Person) ASSERT p.name IS UNIQUE
输出:
Added 1 constraint, completed after 446 ms.
2.删除约束
DROP CONSTRAINT ON (p:Person) ASSERT p.name IS UNIQUE
输出:
1.创建约束
CREATE CONSTRAINT ON (p:Person) ASSERT p.name IS UNIQUE
输出:
Added 1 constraint, completed after 446 ms.
2.删除约束
DROP CONSTRAINT ON (p:Person) ASSERT p.name IS UNIQUE
输出:
本文标题:neo4j使用约束
本文链接:https://www.haomeiwen.com/subject/zmonixtx.html
网友评论