exists() 函数

问题描述 投票:0回答:0

本例使用exists()函数:

MATCH (p:Person) WHERE exists((p)-[:LIVING_IN]->(:Country {name: 'Germany'})) RETURN p.name ORDER BY p.name;

该查询与以下内容有何不同:

MATCH (p:Person)-[:LIVING_IN]->(:Country {name: 'Germany'}) RETURN p.name ORDER BY p.name

为什么要使用

exist()
功能?

我不明白 exist() 函数有什么区别或用例。

cypher memgraphdb opencypher
© www.soinside.com 2019 - 2024. All rights reserved.