I want to remove white spaces present inside the array values
(我有scor = [“1”,“1”])。这里,第一个值在右边有空白区域,第二个值在左边有空白区域。如何在neo4j中删除那些空格?
答案 0 :(得分:0)
cyper具有working with strings的丰富功能。
在您的情况下,您需要trim
功能:
UNWIND ["1", "2 ", " 3", " 4 "] as e
RETURN trim(e)