0
下面的查詢工作正常,我Neo4j的APOC導出CSV特定目錄
CALL apoc.export.csv.query("MATCH (a:Person)
RETURN a.name AS name", "result.csv", {})
,但我想結果導出到一個特定的目錄,例如在「測試」目錄/neo4j-community-3.2.6/test/result.csv
測試目錄中的Neo4j存在-community-3.2.6文件夾,但查詢
CALL apoc.export.csv.query("
MATCH (a:Person)
RETURN a.name AS name",
"/test/result.csv", {})
給了我以下錯誤:
Neo.ClientError.Procedure.ProcedureCallFailed Failed to invoke procedure
apoc.export.csv.query
: Caused by: java.io.FileNotFoundException: \test\result.csv (The system cannot find the path specified)
任何人都可以幫忙嗎?
第一個查詢是將文件放在哪個目錄中? –
感謝您的回覆。它將result.csv放入/neo4j-community-3.2.6目錄。我想把它放到一個子目錄neo4j-community-3.2.6/test – Faaiz
另請參閱這個[相關問題](https://github.com/neo4j-contrib/neo4j-apoc-procedures/issues/609)關於相對路徑。 –