HI I have a text file that file contains multiple records
like
INSERT INTO table1(nodeno,name) VALUES (29,21)
INSERT INTO table1(nodeno,name) VALUES (30,22)
INSERT INTO table1(nodeno,name) VALUES (31,23)
INSERT INTO table1 (nodeno,name) VALUES (32,24)
INSERT INTO table1(nodeno,name) VALUES (33,25)
INSERT INTO table1(nodeno,name) VALUES (34,26)
INSERT INTO table1(nodeno,name) VALUES (35,27)
I am loading this file using
FileReader fr = *new* FileReader(
"C:/ORIENTDBDOCS/myfile.txt");
BufferedReader br = *new* BufferedReader(fr);
String s;
*while* ((s = br.readLine()) != *null*) {
String query = String.*format*(s);
graph.command(*new* OCommandSQL(query)).execute();
}
but I am not able to insert the data
ERROR:
Cannot find a command executor for the command request: sql."INSERT
INTO table1 (nodeno,name) VALUES (29,21)"
Storage
URL="plocal:C:Desktop/orientdb-community-2.2.0-SNAPSHOT_1/databases/TestDB"
--
---
You received this message because you are subscribed to the Google Groups
"OrientDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.