Skip to content

Instantly share code, notes, and snippets.

@64lines
Last active December 11, 2020 19:43
Show Gist options
  • Save 64lines/bb02de7f909561225a9daf21b33a3156 to your computer and use it in GitHub Desktop.
Save 64lines/bb02de7f909561225a9daf21b33a3156 to your computer and use it in GitHub Desktop.
Unload Command
unload ('select * from schema.table')
to 's3://path/to/s3/folder/'
iam_role 'arn:aws:iam::<aws-account-id>:role/<role-name>'
allowoverwrite
format as csv;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment