📜  Neo4j运算符

📅  最后修改于: 2020-11-23 09:21:09             🧑  作者: Mango

Neo4j CQL运营商

Neo4j CQL运算符可以分为以下几种类型:

  • 数学运算符:即+,-,*,/,%,^
  • 比较运算符:即+,<>,<,>,<=,> =
  • 布尔运算符:即AND,OR,XOR,NOT
  • 字符串运算符:即+
  • 列表运算符:即+,IN,[X],[X?.. Y]
  • 正则表达式:即=-
  • 字符串匹配:即STARTS WITH,ENDS WITH,CONSTRAINTS

让我们看看两个最常用的Neo4j CQL运算符:

布尔运算符

以下是在Neo4j CQL WHERE子句中用于支持多种条件的布尔运算符的列表:

Index Boolean operators Description
1. AND It is a neo4j CQL keyword to support AND operation. It is like SQL AND operator.
2. OR It is a Neo4j CQL keyword to support OR operation. It is like SQL AND operator.
3. NOT It is a Neo4j CQL keyword to support NOT operation. It is like SQL AND operator.
4. XOR It is a Neo4j CQL keyword to support XOR operation. It is like SQL AND operator.

比较运算符

与WHERE子句一起使用的Neo4j CQL比较运算符的列表:

Index Boolean operators Description
1. = It is a Neo4j CQL “equal to” operator.
2. < > It is a Neo4j CQL “not equal to” operator.
3. < It is a Neo4j CQL “less than” operator.
4. > It is a Neo4j CQL “greater than” operator.
5. <= It is a Neo4j CQL “less than or equal to” operator.
6. > = It is a Neo4j CQL”greater than or equal to” operator.