你可以在 Apache AGE 中删除任何标签(无论是用于顶点还是边的)如何操作?

huangapple go评论47阅读模式
英文:

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

huangapple
  • 本文由 发表于 2023年2月27日 03:31:23
  • 转载请务必保留本文链接:https://go.coder-hub.com/75574526.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定