Dear all,

Please help me in csv import.

I would like to import by cipher following two files: Objects and Relations.

But i can't.

CREATE CONSTRAINT ON (o:Objects) ASSERT o.ID IS UNIQUE;
LOAD CSV WITH HEADERS FROM file:c:\Desktop\Objects.csv AS row
CREATE (:Objects {ID: toInt(row[0]), name:row[1]});
CREATE INDEX ON :Objects(ID);
USING PERIODIC COMMIT
LOAD CSV WITH HEADERS FROM file:c:\Desktop\Paycell.csv AS row
CREATE (p:Relations {ID: toInt(row[0])})
CREATE (p1:Relations)-[:CALLS]->(p2:Relations);
RETURN p1.relation, p1.SRC, p1.DST;
ORDER BY p1.relation;

Error:

Invalid input 'f': expected whitespace, comment, "...string..." or a parameter 
(line 2, column 28 (offset: 83))
"LOAD CSV WITH HEADERS FROM file:c:\Desktop\Objects.csv AS row"


-- 
You received this message because you are subscribed to the Google Groups 
"Neo4j" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to neo4j+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to