Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/amazon-web-services/12.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Amazon web services 如何在redshift unload命令中避免重复行_Amazon Web Services_Amazon Redshift - Fatal编程技术网

Amazon web services 如何在redshift unload命令中避免重复行

Amazon web services 如何在redshift unload命令中避免重复行,amazon-web-services,amazon-redshift,Amazon Web Services,Amazon Redshift,我有一个表,总共有60行,其中14行是唯一的,需要使用unload命令将红移数据下载到s3,unload命令是否会处理重复的数据,或者我必须明确地提到一些内容,其中包含select语句。因此,只需编写语句,使其仅选择所需的行 例如: unload ('select DISTINCT * from table') to 's3://mybucket/unload/' iam_role 'arn:aws:iam::0123456789012:role/MyRedshiftRole'; 我的sel

我有一个表,总共有60行,其中14行是唯一的,需要使用unload命令将红移数据下载到s3,unload命令是否会处理重复的数据,或者我必须明确地提到一些内容,其中包含select语句。因此,只需编写语句,使其仅选择所需的行

例如:

unload ('select DISTINCT * from table')
to 's3://mybucket/unload/' 
iam_role 'arn:aws:iam::0123456789012:role/MyRedshiftRole';

我的select语句没有唯一的值,但创建的s3文件只有唯一的值