我知道我喜歡雲下面如何在neo4j中加載csv時輕鬆處理null?
LOAD CSV WITH HEADERS FROM "https://gist.githubusercontent.com/jexp/d788e117129c3730a042/raw/c5f98f269b4a219ebb88bd3eb83d331f439a8201/people.csv"
AS line
WITH line
WHERE line.PersonName IS NOT NULL
RETURN line.PersonName, coalesce(line.Company,"None")
,但在我的情況,有行的許多屬性利用代碼null.Could我重複在Neo4j的線路(圖結構)?可能是這樣的for k,v in line
。
如果你將null分配給一個屬性,它將不會被創建 –