Skip to content

Instantly share code, notes, and snippets.

@belenaj
Last active February 25, 2020 22:58
Show Gist options
  • Select an option

  • Save belenaj/97f46ab64e9eda79eda6cf7e0d309c57 to your computer and use it in GitHub Desktop.

Select an option

Save belenaj/97f46ab64e9eda79eda6cf7e0d309c57 to your computer and use it in GitHub Desktop.
#exasol
IMPORT INTO mytable
FROM LOCAL SECURE CSV
FILE /file.csv
(1, 2 FORMAT = 'YYYY-MM-DD', 3..12)
ENCODING = 'ASCII'
ROW SEPARATOR = 'LF'
SKIP = 1;
COMMIT;
-- file in s3
IMPORT INTO mytable
FROM CSV
at S3_CONN
file 'testbucket/file.csv'
IMPORT INTO mytable FROM CSV AT 'https://testbucket.s3.amazonaws.com'
USER '<key-ID>' IDENTIFIED BY '<secret-key>' -- user/password
FILE 'testpath/test.csv';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment