如何删除neo4j的字符串数组中的空格

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

I want to remove white spaces present inside the array values

(我有scor = [“1”,“1”])。这里,第一个值在右边有空白区域,第二个值在左边有空白区域。如何删除neo4j中的空格?

neo4j spring-data-neo4j neo4j-ogm
1个回答
0
投票

cyper具有丰富的working with strings功能。

在您的情况下,您需要trim函数:

UNWIND ["1", "2 ", " 3", " 4 "] as e
RETURN trim(e)
© www.soinside.com 2019 - 2024. All rights reserved.