Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何获取count函数返回的列名
这就是问题所在
cypherquery='START n=node:node_auto_index(name='Ashish') MATCH n-[:f]-h RETURN h,count(h)'
第一列名称肯定是“ h ”,但是第二列的名称呢?
使用 AS 关键字,如下所示:
'START n=node:node_auto_index(name='Ashish') MATCH n-[:f]-h RETURN h,count(h) as columnName'
使用“columnName”来引用结果。