Created
January 31, 2019 14:01
-
-
Save ufuk/de35377909c5c0190a22ca1c94e7d0cc to your computer and use it in GitHub Desktop.
Import CSV file from S3 into AWS Redshift
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Before importing, you need to create table | |
CREATE TABLE example_table | |
( | |
... | |
); | |
-- Importing... | |
COPY example_table | |
FROM 's3://<BUCKET_NAME>/.../example_table.csv' | |
CREDENTIALS 'aws_access_key_id=...;aws_secret_access_key=...' | |
CSV; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment