jdbcsql is a small command-line tool written in JAVA and can be used on all platforms, for which JRE 8 is available.
To connect to a specific DBMS the tool uses its JDBC driver. The current version for
download supports the following DBMS:
mysql, oracle and postgresql. Other systems can easily be added by the user. The result of the executed
'select' query is displayed in CSV format (by default complying to
rfc4180,
but other standards are supported too). When there is an error the tool
stops with exit code 1 and the error message is output on stderr. jdbcsql is created with a main purpose to be used
in shell-scripts.
Relatively easy to configurate, this tool is suitable for queries ‘select’, ‘update’ and ‘delete’. I think that is not
suitable for a large number of requests, like 'insert'.
$ java -jar jdbcsql.zip
jdbcsql execute queries in diferent databases such as mysql, oracle, postgresql and etc.
Query with resultset output over stdout in CSV format.
usage: jdbcsql [OPTION]... SQL
-?,--help show this help, then exit
-d,--dbname database name to connect
-f,--csv-format Output CSV format (EXCEL, MYSQL,
RFC-4180 and TDF). Default is RFC-4180
-h,--host database server host
-H,--hide-headers hide headers on output
-m,--management-system database management system (mysql,
oracle, postgresql ...)
-p,--port database server port
-P,--password database password
-s,--separator column separator (default: "\t")
-U,--usernme database user name