1
当字符串包含转义字符时,查询不会返回数据。 我在这里做错了什么?Neo4j - 无法检索包含转义字符的数据
neo4j-sh (?)$ MATCH (c: Country{country_name:'Côte d\'Ivoire'}) return c;
==> +---+
==> | c |
==> +---+
==> +---+
==> 0 row
==> 7 ms
neo4j-sh (?)$ MATCH (c: Country) where (c.country_name = 'Côte d\'Ivoire') return c;
==> +---+
==> | c |
==> +---+
==> +---+
==> 0 row
==> 16 ms
neo4j-sh (?)$ MATCH (c: Country) where (c.country_name =~ '.*Ivoire') return c;
==> +------------------------------------------+
==> | c |
==> +------------------------------------------+
==> | Node[3349]{country_name:"Cote d'Ivoire"} |
==> +------------------------------------------+
==> 1 row
==> 13 ms
neo4j-sh (?)$
这可能取决于您的数据如何进入数据库。您输入的内容是否有可能与您查询的内容不同? – FrobberOfBits
我一直在使用UTF8。 – LDB
你试过了:'where(c.country_name =“Côted'Ivoire”)'? –