--
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+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Am 16.05.2015 um 23:21 schrieb cdu8...@gmail.com:
Hi Michael,
Thanks for your answer, i tried to followyour solution but without success.
LOAD CSV WITH HEADERS FROM 'file:c:/Users/Fred/Desktop/cgp2.csv' AS row FIELDTERMINATOR ';'
merge (d:Day {name:"Lundi"})
where row.Lundi = "x"
with d,row.Serveur as serverName, collect(row.Script) as scripts
merge (s:Serveur {name:serverName})
merge (d)-[:PROCESS]->(s)
with s, scripts, size(scripts) as size
merge (scr1:Script {name: scripts[0]})
create (s)-[:EXECUTION]->(scr1)
FOREACH (idx in range(0,size-2) |
MERGE (s1:Script {name:scripts[idx]})
MERGE (s2:Script {name:scripts[idx+1]})
CREATE (s1)-[:AFTER]->(s2))
WITH scripts, s
--
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+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
<cgp2.csv>
Invalid input 'h': expected 'i/I' (line 2, column 2 (offset: 93)) "where row.Lundi = "x""
Thanks a lot for your help.
Best Regards,
Fred
LOAD CSV WITH HEADERS FROM 'file:c:/Users/Fred/Desktop/cgp2.csv' AS row FIELDTERMINATOR ';'
...where row.Lundi = "x"
WITH is required between CREATE and UNWIND (line 14, column 1 (offset: 386)) "unwind range(0,size(scripts)-2) as idx"
Best Regards,
Fred
LOAD CSV WITH HEADERS FROM 'file:c:/Users/Fred/Desktop/cgp2.csv' AS row FIELDTERMINATOR ';'
return row limit 5