I tried to modify output format with option "-f" but I see always the same result. I tried "-f EXCEL", "-f MYSQL", "-f TDF" and "-f RFC-4180" but I canot see any difference in the output format.
Example:
user@test~$ java -jar jdbcsql.zip -m postgresql -h localhost -d rdb -U dbuser -P "secret" -f EXCEL -s "," "select count(*) as count1,count(*) as count2 from pg_settings;"
BTW, this command reports the error that column count is there twice. This is not a problem for other tools (like jisql).
user@test~$ java -jar jdbcsql.zip -m postgresql -h localhost -d rdb -U dbuser -P "secret" "select count(*), count(*) from pg_settings;"
The header contains a duplicate entry: 'count' in [count, count]
When I disable headers with option "-H", error is not reported:
user@test~$ java -jar jdbcsql.zip -m postgresql -h localhost -d rdb -U dbuser -P "secret" -H "select count(*), count(*) from pg_settings;"