gpt4 book ai didi

neo4j - 如何获得 Neo4j 中已经存在的约束?

转载 作者:行者123 更新时间:2023-12-03 23:24:00 25 4
gpt4 key购买 nike

当我在图表上创建了一些约束时,如何才能看到它们并消除它们?将它们视为图形元素的语法是什么?

最佳答案

在neo4j 浏览器中你可以使用:schema命令列出它们。
在 shell 中它是 schema
然后你可以删除它们

`DROP INDEX ON :Label(prop)` 

或者
`DROP CONSTRAINT ON (n:Label) ASSERT n.props IS UNIQUE`

关于neo4j - 如何获得 Neo4j 中已经存在的约束?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21658285/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com