美文网首页
Cypher中的group by

Cypher中的group by

作者: 扣篮的左手 | 来源:发表于2019-03-20 23:51 被阅读0次

Cypher中是没有group by的,要实现group by的功能,可以使用return distinct加上聚合函数来实现。
match(n)-[]->(m) return distinct m.xxx, count(m)
上边的Cypher根据m的某个属性分组,并求数量。也可以使用max,min求最大最小值等。

相关文章

网友评论

      本文标题:Cypher中的group by

      本文链接:https://www.haomeiwen.com/subject/rfxfvqtx.html