Writing the results from an SQL query directly to a file in DBVisualizer
Tuesday 15. June 2010 kl. 08:51
Posted by Hugi Thordarson
If you want to write directly to a file, just do:
@export on; @export set filename="/tmp/bigassquerydata.csv"; select * from huge_table
The default format of the outputted data is CSV, but you can specify a different format by adding a 'format' parameter to the @export directive, like so:
@export on; @export set filename="/tmp/bigassquerydata.sql" format="sql"; select * from huge_table
Comments
No comments.
Express yourself!