如何将两个大的Cypher做关联查询,求解答
发布于 6 年前 作者 zxxxxz 4339 次浏览 来自 问答

Cypher 如何将两个大的Cypher做关联查询

sql的写法 方便大家能看懂 select a.name,b.name from ( select * from a …多表关联 )aa, (select * from b…多表关联) bb where aa.id=bb.id

Cypher写法 cypher1伪代码 match a with a match … with match with id,name cypher2伪代码 match a with a match … with match with id,name

求教 cypher1 关联 cypher2 这种cypher我该怎么写

3 回复

cypher 有union 的,你查下官网 文档看看用法

@pangguoming union的用法是合并数据去重,我想要的写法是 两个查询的结果 再做关联查询

按照你的模型,查询语句这么写

match (a:Labela )  match (b:Labelb)
where a.name = b.name
return a,b;

不过我觉得你建的模型有问题,你用关系数据库的建模方法处理非关系型数据库的模型

回到顶部