当前位置:网站首页>Neo4j modify tag name
Neo4j modify tag name
2022-07-24 07:01:00 【KimiKudo】
Modify the node label
Match to the node to be deleted , Use REMOVE Delete the label to be deleted , Then set a new label
like this :
MATCH (n:OLD_LABEL)
REMOVE n:OLD_LABEL
SET n:NEW_LABEL
for example :
MATCH (n:User:Teacher) REMOVE n:Student RETURN n
There is also a stored procedure . I didn't try
Reference resources : http://neo4j.com.cn/topic/5b9647e8bdb1ecde08de8fb8
apoc.periodic.iterate how set label Change node label
Published on 1 Years ago author stringso 1133 Views come from Question and answer
as follows , add set n:row.label_type That would be a mistake
CALL apoc.periodic.iterate(‘with "select * from tables limit 10 " as sql call apoc.load.jdbcParams(“jdbc:mysql://xxxx:3306/xx?user=xx&password=xx”, sql, []) yield row return row’,’ MERGE (n:xx {id:row.id}) set n:row.label_type,n.name=row.namet’,{batchSize:10000,iterateList:true})
Modify the relationship label
Modifying relationships cannot be directly modified like nodes , It can't pass type() Function modification , So you need to delete the old relationship , Add a new relationship , Copy properties .
as follows :
MATCH (n)-[r:OLD_RELATION]->(m)
CREATE (n)-[r2:NEW_RELATION]->(m)
SET r2 = r // Here is the copy attribute
WITH r
DELETE r
边栏推荐
猜你喜欢

安装snownlp包过程出现Requirement already satisfied:及Read timed out.问题解决方法

MGR_ mysqlsh_ Keepalive high availability architecture deployment document
![[lvgl (5)] label usage](/img/55/f25a510cf04caff7ee15e72360c3a1.png)
[lvgl (5)] label usage

Introduction to pyqt5 - student management system

An AI plays 41 games, and the comprehensive performance score of Google's latest multi game decision transformer is twice that of dqn

Redis.conf details

STM32基于hal库的adc以DMA的多通道采样以及所遇问题解决

Redis.conf详解

10分钟就能写出来的——25~30K的国外企业招聘面试考题,这不是轻轻松松吗~

mysql获取自增行标(区别mysql版本)
随机推荐
Breadth first search (template use)
"Big factory interview" JVM Chapter 21 questions and answers
Tensorflow Einstein function
Redis distributed cache learning notes
Geek planet ByteDance one stop data governance solution and platform architecture
xxl执行节点错误日志刷屏
Introduction to kubernetes (kubernetes benefits)
[lvgl (5)] label usage
先爱自己,再爱别人。
[lvgl] [stage summary 1]
OSS authorizes a single bucket permission
XXL execute node error log swiping
Redis特殊数据类型-BitMap
Huawei experts' self statement: how to become an excellent engineer
String问题
【学习笔记】Web页面渲染的流程
tensorflow boolean_ Mask function
(static, dynamic, file) three versions of address book
[lvgl (2)]
STM32 MP3 music player based on FatFs r0.14b & SD card (also a simple application of FatFs)