There is not possibilty to get this automated.
you would need to do it manually
select 'select what_ever from tab order by 2,3,5' (title'');
Be carefull with in query ' which would need to be replaced with ''.
Alternative create a small Java function to write the SQL into a file and export the data into the same file. Should be easier to achive what you want fully automated.
↧