Neo4j-Cypher查询语言-表达式

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
转义字符:

 

猜你喜欢

转载自hugh-wangp.iteye.com/blog/1848858