Reputation: 124
I have to implement a CR, where i have to unload around 180 tables of Redshift cluster. I have all Unload command, which I'm going to execute one by one.
It would be great if I do get some work-around over this issue.
Reference document: Unloading Data to Amazon S3
Sample command:
unload ('select column1, column2 from table') to 's3://prod/audi/history/20150914/fact_invite2_audi_'
credentials '<>'
MANIFEST GZIP ESCAPE DELIMITER AS ',' ;
Upvotes: 0
Views: 3956
Reputation: 3118
I have recently implemented this with the help of stored procedure.
All detailed steps are here: https://thedataguy.in/redshift-unload-multiple-tables-schema-to-s3/
Upvotes: 0
Reputation: 270184
The Amazon Redshift UNLOAD
command only exports the results of one SELECT statement. The statement can reference multiple Redshift tables, but will not export the data as separate outputs.
Some options:
Upvotes: 2