DELETE VERTEX
DELETE VERTEX
语句可以删除点,以及点关联的出边和入边。
DELETE VERTEX
语句一次可以删除一个或多个点。用户可以结合管道符一起使用,详情请参见管道符。
语法
DELETE VERTEX <vid> [, <vid> ...];
示例
nebula> DELETE VERTEX "team1";
# 结合管道符,删除符合条件的点。
nebula> GO FROM "player100" OVER serve WHERE serve.start_year == "2021" YIELD serve._dst AS id | DELETE VERTEX $-.id;
删除过程与删除邻边
Nebula Graph 先找到并删除目标点的所有邻边(出边和入边),然后删除目标点。