为 Neo4j 转义导入中的特殊字符

Escaping Special Characters in Import for Neo4j

在我的 where 子句中,我试图通过遵循 the manual's 关于创建节点时反引号的建议来转义特殊字符“#”:

WHERE line.`The #` IS NOT NULL AND line.`Person's First/Last Name` IS NOT NULL

但是,当我这样做时,我收到消息:

No data returned, and nothing was changed.

我是否正确转义了 header 值("The #" 和 "Person's First/Last Name")?

这个示例代码适合我,看起来你的问题不是转义字符。

CREATE (n:TestNode { `The #`:"123", `Person's First/Last Name`:"john johnson" });

MATCH (line)
WHERE line.`The #` IS NOT NULL AND line.`Person's First/Last Name` IS NOT NULL
RETURN line.`The #`, line.`Person's First/Last Name`;

line.`The #`    line.`Person's First/Last Name`
123 john johnson
Returned 1 row in 128 ms