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.
运行此密码查询:
MATCH (n:`User`) WHERE type = 'artist' SET n.updated_at = '2014-05-06 21:32:00', n.name = 'example' RETURN count(n)
这将返回匹配节点的数量,无论它们是否受到SET语句的影响。
SET
有没有办法只返回受影响节点的数量?
我认为,如果您想获得修改节点的数量,那么您需要将该SET子句的否定WHERE作为MATCH. 这样,您将只匹配需要更新的节点(因此可以返回它们的计数)。
WHERE
MATCH