Import CSV files into HSQLDB -
i trying convert set of csv files hsqldb database. first attempt fire databasemanagerswing
, execute following code:
* *dsv_col_splitter = ; \mq /home/michael/workspaces/rds-surveyor/lt/it/names.dat commit;
which gets rejected error message:
java.sql.sqlsyntaxerrorexception: unexpected token: *
in order @ least response hsqldb, tried removing first line, gives different error:
java.sql.sqlsyntaxerrorexception: unexpected token:
i came across sqltool, , after overcoming various pitfalls (you need sqltool jar, hsqldb jar of same version in same path or somewhere in classpath) ran full code here. first line got processed expected, \mq
command fails similar error:
severe cause: sqlsyntaxerrorexception: unknown token:
the file trying import looks (first few lines shown):
cid;lid;nid;name;ncomment 25;1;165;europa; 25;1;167;italia; 25;1;169;abruzzo; 25;1;171;chieti; 25;1;173;passo di lanciano; 25;1;175;valico castiglione messer marino; 25;1;177;valico della forchetta;
what's going wrong here?
the command trying execute belongs sqltool, separate command line client hsqldb , in separate jar in zip package. guide here: http://hsqldb.org/doc/2.0/util-guide/sqltool-chapt.html
in databasemanagerswing, can use different method of creating text tables csv files. http://hsqldb.org/doc/2.0/guide/texttables-chapt.html
Comments
Post a Comment