注释

本页介绍如何在 Cypher® 中使用注释。

单行注释以双斜杠 (//) 开头,并持续到行尾。多行注释以斜杠和星号 (/*) 开头,并持续到以星号和斜杠 ('*/') 结尾。注释不执行,它们是供人类阅读的。

示例

MATCH (n) RETURN n //This is an end of line comment
MATCH (n)
//This is a whole line comment
RETURN n
MATCH (n) /* This is a multi line comment,
the comment continues on this line
but it ends on this line. */
RETURN n
MATCH (n) WHERE n.property = '//This is NOT a comment' RETURN n