Cypher里的表达式包括:
- 数值(integer or double): 13, 40000, 3.14
- 字符串: “hello world”
- 布尔值: true, false, TRUE, FALSE
- 识别码:n, x, rel, myFancyIdentifier, `A name with weird stuff in it[]!`
属性:n.prop, x.prop, rel.thisProperty, myFancyIdentifier.`(weird property name)`- 可空属性(标记了?或!的属性):n.prop?, n.prop!
- 参数:{param},{0}
- 集合表达式:["a", "b"], [1,2,3], ["a", 2, n.property, {param}], [ ]
- 函数调用:length(p), nodes(p)
- 聚合函数:avg(xprop), count(*)
- 关系类型:REL_TYPE, :`REL TYPE`, :REL1|REL2
- 路径-模式:a-->()<--b
转义字符:


Cypher表达式详解:从基本到高级
本文深入解析Cypher查询语言的表达式,包括数值、字符串、布尔值、标识符、属性、参数、集合与函数调用等核心元素,以及聚合函数和关系类型的应用,提供全面的查询构建指南。
967

被折叠的 条评论
为什么被折叠?



