neo4j 移除标签,无效的输入 –

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

neo4j remove labels , invalid input -

问题

在neo4j浏览器中,我尝试执行以下命令:

  1. match(n:DATA_CATEGORY_TYPE) remove n:client-18d1b5fb-c7b5-4769-9b75-363ec596b012 return n

我收到以下错误信息:

  1. Invalid input '-' : expected
  2. ','
  3. 'CALL'
  4. 'CREATE'
  5. 'DELETE'
  6. 'DETACH'
  7. 'FOREACH'
  8. 'LOAD'
  9. 'MATCH'
  10. 'MERGE'
  11. 'OPTIONAL'
  12. 'REMOVE'
  13. 'RETURN'
  14. 'SET'
  15. 'UNION'
  16. 'UNWIND'
  17. 'USE'
  18. 'WITH'
  19. <EOF> (line 1, column 44 (offset: 43))
  20. "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:

  1. match(n:DATA_CATEGORY_TYPE) remove n:client-18d1b5fb-c7b5-4769-9b75-363ec596b012 return n

I get the following error:

  1. Invalid input &#39;-&#39;: expected
  2. &quot;,&quot;
  3. &quot;CALL&quot;
  4. &quot;CREATE&quot;
  5. &quot;DELETE&quot;
  6. &quot;DETACH&quot;
  7. &quot;FOREACH&quot;
  8. &quot;LOAD&quot;
  9. &quot;MATCH&quot;
  10. &quot;MERGE&quot;
  11. &quot;OPTIONAL&quot;
  12. &quot;REMOVE&quot;
  13. &quot;RETURN&quot;
  14. &quot;SET&quot;
  15. &quot;UNION&quot;
  16. &quot;UNWIND&quot;
  17. &quot;USE&quot;
  18. &quot;WITH&quot;
  19. &lt;EOF&gt; (line 1, column 44 (offset: 43))
  20. &quot;match(n:DATA_CATEGORY_TYPE) remove n:client-18d1b5fb-c7b5-4769-9b75-363ec596b012 return n&quot;

Something is wrong with the use of "-" in the label, but cannot change it. How can i deal with this error?

答案1

得分: 2

使用反引号 ` 来标记标签,如下所示,

  1. match(n:DATA_CATEGORY_TYPE) remove n:`client-18d1b5fb-c7b5-4769-9b75-363ec596b012` return n
英文:

Use back-ticks ` for the labels, like so,

  1. match(n:DATA_CATEGORY_TYPE) remove n:`client-18d1b5fb-c7b5-4769-9b75-363ec596b012` return n

huangapple
  • 本文由 发表于 2023年4月13日 23:14:00
  • 转载请务必保留本文链接:https://go.coder-hub.com/76007106.html
匿名

发表评论

匿名网友

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

确定