How to execute Cypher in a file?

前端 未结 6 1164
情深已故
情深已故 2021-01-04 01:39

I am working on windows. I have created a text file of Cypher query using notepad. How can I run the query in the file using Neo4jShell or Neo4j web interface console.

6条回答
  •  被撕碎了的回忆
    2021-01-04 02:00

    On Debian/Ubuntu or any *nix installations, use the following from terminal:

    $ neo4j-shell -c < path-to-cypher-query-file.cql

    Note that each cypher query in the file must end in a semicolon and must be separated by a blank line from the other query. Also, the .cql ending (file format) is not mandatory.

提交回复
热议问题