Redshift. Convert comma delimited values into rows

后端 未结 8 1184
北恋
北恋 2020-12-01 06:25

I am wondering how to convert comma-delimited values into rows in Redshift. I am afraid that my own solution isn\'t optimal. Please advise. I have table with one of the colu

8条回答
  •  悲&欢浪女
    2020-12-01 06:52

    You can try copy command to copy your file into redshift tables

    copy table_name from 's3://mybucket/myfolder/my.csv' CREDENTIALS 'aws_access_key_id=my_aws_acc_key;aws_secret_access_key=my_aws_sec_key' delimiter ','
    

    You can use delimiter ',' option.

    For more details of copy command options you can visit this page

    http://docs.aws.amazon.com/redshift/latest/dg/r_COPY.html

提交回复
热议问题