I have a SQL statement built on the fly. I want to transfer the data of that SQL to a new CSV file.
So far I have had to create an actual query to dump in the data and then transferText to a CSV.
Is there any way I can miss out the middle step? The transferText method seems to demand an actual table or query but using a query has its drawbacks - I have to keep on deleting it after use etc - admittedly not the end of the world but I want to keep the procedure as neat as possible.
Thanks
So far I have had to create an actual query to dump in the data and then transferText to a CSV.
Is there any way I can miss out the middle step? The transferText method seems to demand an actual table or query but using a query has its drawbacks - I have to keep on deleting it after use etc - admittedly not the end of the world but I want to keep the procedure as neat as possible.
Thanks