Created
February 26, 2018 09:01
-
-
Save vithalsamp/8ec7d401817caf6b776e837b43bbd539 to your computer and use it in GitHub Desktop.
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
training=# copy sample_test_stage from 's3://testbucket/Sample_fixed_width.txt' CREDENTIALS | |
training-# 'aws_access_key_id=xxxxxxxx; aws_secret_access_key=yyyyyyyyy' fixedwidth 'col1:6,col2:4, col3:11,col4:12,col5:10,col6:8'; | |
INFO: Load into table 'sample_test_stage' completed, 17 record(s) loaded successfully. | |
COPY | |
training=# select * from sample_test_stage limit 2; | |
col1 | col2 | col3 | col4 | col5 | col6 | |
--------+------+-------------+--------------+------------+--------- | |
191675 | 01 | 01142013 | 2368183100 | OUNHQEX | XUFQONY | |
191673 | 01 | 01142013 | 2632703881 | PAHFSAP | LUVIKXZ | |
(2 rows) | |
training=# |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment