英文:
How can I delete any Label (either for vertex or edge) in Apache AGE?
问题
我尝试过:
SELECT drop_vlabel('graph','vName');
SELECT delete_vlabel('graph','vName');
但它们出错了。
ERROR: 函数 drop_vlabel(unknown, unknown) 不存在
ERROR: 函数 delete_vlabel(unknown, unknown) 不存在
我该如何做呢?
英文:
I have tried:
SELECT drop_vlabel('graph','vName');
SELECT delete_vlabel('graph','vName');
But they give error.
ERROR: function drop_vlabel(unknown, unknown) does not exist
ERROR: function delete_vlabel(unknown, unknown) does not exist
How can I do that?
答案1
得分: 0
这个功能目前正在Apache AGE开发中。请查看此问题这里和这里。
因此,目前您可以删除该节点/边,然后重新创建所有节点/边及其连接。
英文:
This feature currently under development in apache AGE. See the issue here and here.
So for now what you can do is delete that node/edge and then recreate all the node/edge and its connection
答案2
得分: 0
为了删除标签(无论是边的还是顶点的),请使用以下命令:
SELECT drop_label('graph', 'vName');
它应该显示类似以下的内容:
> NOTICE: label "graph"."vName" has been dropped
上述通知表明标签已成功删除。您还可以使用以下命令进行交叉检查:
SELECT * FROM ag_catalog.ag_label;
这个表格不应该包含您刚刚删除的标签。
参考:回归测试
英文:
In order to drop a label (either of edge or of a vertex), use
SELECT drop_label('graph', 'vName');
It should display something like
> NOTICE: label "graph"."vName" has been dropped
The above notice shows that label has been dropped successfully.
You can also crosscheck using the following command:
SELECT * FROM ag_catalog.ag_label;
This table should not have the label that you just dropped
Reference: regression test here
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论