neo4j查询语句

1、把节点的前两个字为"提示"的节点去除"提示":

match(l) where l.name=~'提示.*' 
with collect(l.name)
as result 
unwind result as row 
return substring(row,2)

2、把带提示的节点,更新为不带提示:

match(l) where l.name=~'提示.*' 
with collect(l.name)
as result 
unwind result as row 
match(h) where h.name=row set h.name=substring(row,2)
return h

猜你喜欢

转载自www.cnblogs.com/kwzblog/p/10616175.html