如何删除s3存储桶中的对象

时间:2016-11-07 14:54:21

标签: amazon-s3 amazon-redshift

如何在执行卸载命令之前删除存储桶Exp test.csv中的对象。

UNLOAD('select * from abc') TO's3://Bucket/Product/temp/test.csv'CREDENTIALS 'aws_access_key_id = xxx; aws_secret_access_key = xx'PARALLEL OFF

由于

1 个答案:

答案 0 :(得分:0)

添加添加 ESCAPE ALLOWOVERWRITE 我有

UNLOAD('select * from abc')TO's3://Bucket/Product/temp/test.csv'CREDENTIALS'aws_access_key_id = xxx; aws_secret_access_key = xx'PARALLEL OFF ESCAPE ALLOWOVERWRITE