注释

此页面介绍如何在 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