Skip to content

Instantly share code, notes, and snippets.

@iam-mhaseeb
Created October 16, 2022 06:22
Show Gist options
  • Save iam-mhaseeb/f67411d0ba0e1265af138d0a227cf7eb to your computer and use it in GitHub Desktop.
Save iam-mhaseeb/f67411d0ba0e1265af138d0a227cf7eb to your computer and use it in GitHub Desktop.
UNLOAD ('select * from skytrax.airline')
TO 's3://redshift-data-movement/backups/airline.csv'
CREDENTIALS 'aws_access_key_id=XXXXXXXXXX;aws_secret_access_key=XXXXXXXXXX'
FORMAT as csv;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment