英文:
neo4j remove labels , invalid input -
问题
在neo4j浏览器中,我尝试执行以下命令:
match(n:DATA_CATEGORY_TYPE) remove n:client-18d1b5fb-c7b5-4769-9b75-363ec596b012 return n
我收到以下错误信息:
Invalid input '-' : expected
','
'CALL'
'CREATE'
'DELETE'
'DETACH'
'FOREACH'
'LOAD'
'MATCH'
'MERGE'
'OPTIONAL'
'REMOVE'
'RETURN'
'SET'
'UNION'
'UNWIND'
'USE'
'WITH'
<EOF> (line 1, column 44 (offset: 43))
"match(n:DATA_CATEGORY_TYPE) remove n:client-18d1b5fb-c7b5-4769-9b75-363ec596b012 return n"
标签中的“-”使用有问题,但无法更改它。如何处理这个错误?
英文:
In the neo4j browser i try to execute the following command:
match(n:DATA_CATEGORY_TYPE) remove n:client-18d1b5fb-c7b5-4769-9b75-363ec596b012 return n
I get the following error:
Invalid input '-': expected
","
"CALL"
"CREATE"
"DELETE"
"DETACH"
"FOREACH"
"LOAD"
"MATCH"
"MERGE"
"OPTIONAL"
"REMOVE"
"RETURN"
"SET"
"UNION"
"UNWIND"
"USE"
"WITH"
<EOF> (line 1, column 44 (offset: 43))
"match(n:DATA_CATEGORY_TYPE) remove n:client-18d1b5fb-c7b5-4769-9b75-363ec596b012 return n"
Something is wrong with the use of "-" in the label, but cannot change it. How can i deal with this error?
答案1
得分: 2
使用反引号 ` 来标记标签,如下所示,
match(n:DATA_CATEGORY_TYPE) remove n:`client-18d1b5fb-c7b5-4769-9b75-363ec596b012` return n
英文:
Use back-ticks ` for the labels, like so,
match(n:DATA_CATEGORY_TYPE) remove n:`client-18d1b5fb-c7b5-4769-9b75-363ec596b012` return n
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论