Cypher - 简要说明
时间: 2019-07-05来源:OSCHINA
前景提要
【围观】麒麟芯片遭打压成绝版,华为亿元投入又砸向了哪里?>>>
节点 (标签)
() (n) (:User) (n:User) (u:User{id:1,name:'may'})
关系 (类型)
-- -[r]- -[:ORG]- -[r:ORG]- -[r:ORG{type:'aaa'}]- //无向关系
--> -[r]-> -[:ORG]-> -[r:ORG]-> -[r:ORG{type:'aaa'}]-> //有向关系
模式变量
p = (:User) -[:ORG]-> (:User)
数据类型
数值型 如: 1,2,
字符串 如:‘a’ , “b”
布尔型 如: true ,false
节点 如: ()
关系 如: --> , -- ,<--
路径 如: ()--() , ()<--()
map 如: {id:1}
list 如:[1,2,3]
null 任何类型
运算符
数学: + - * / % ^
比较: = <> < > <= >= IS NULL IS NOT NULL
布尔: AND OR XOR NOT
字符: + =~
列表: IN
链式比较: mathc(n) where 21 < n.age < 30 return n

注意与null 比较都返回 null:
null = null 结果 null
null <> null 结果 null // 注释
// 语句
读语句: match / optional match / where / start / aggregation / load csv
写语句:create / merge / set / delete / remove / foreach / create unique
通用语句:return / order by / limit / skip / with / unwind / all union / call



科技资讯:

科技学院:

科技百科:

科技书籍:

网站大全:

软件大全:

热门排行