Store result of SQL in a file does not allow recursive queries
A Java SQL client for any JDBC compliant database
Brought to you by:
colbell,
gerdwagner
The headline is a bit unfortunate, but the description correctly hints that any command starting with 'WITH" has the problem (cannot directly store the result to a file, despite pulling the data up working just fine).
E.g. in Oracle:
with a as(select 'q' from dual)
SELECT * FROM a;
already shows "The selected SQL is not a SELECT statement." when selecting "Store result of SQL in file".
As workaround (in Oracle) I can use
select * from (
with a as(select 'q' from dual)
SELECT * FROM a)
(Tested with SQuirreL 3.5.0)
Unchanged in version 3.5.1