EXPORTTABLEts_sourceINTOREMOTETABLE'ts'WITHOPTIONS(DATASINK_NAME='jdbc_dsink',JDBC_SESSION_INIT_STATEMENT='SET TIME ZONE ''EST''',JDBC_CONNECTION_INIT_STATEMENT='CREATE TABLE ts (ts DATETIME)')
-- Creates a file with a name like:
-- export/product.csv
EXPORTTABLEproductINTOFILEPATH'/export/product.csv'WITHOPTIONS(SINGLE_FILE='overwrite')
Single File w/ Code
1
2
3
4
-- Creates a file with a name like:
-- export/product_611460000.csv
EXPORTTABLEproductINTOFILEPATH'/export/product.csv'
Multiple Files w/ Code
1
2
3
4
5
6
-- Creates a set of files with names like:
-- * export/product_611641000.csv
-- * export/product_611642000.csv
EXPORTTABLEproductINTOFILEPATH'/export/product.csv'WITHOPTIONS(SINGLE_FILE=false)