每天我使用 COPY INTO 命令将数据从表下载到 AWS 存储桶,但我想在生成的文件名中添加当前日期,例如 "tablename_08132021.csv" 。是否有可能做到这一点?
这是我目前的声明:
copy into @SNOWFLAKE_IN/report_last_60d from (select * from reports where MOV_CREATION_DATE > DATEADD(Day ,-60, current_date) ) FILE_FORMAT = (TYPE = CSV FIELD_DELIMITER= '\27' EMPTY_FIELD_AS_NULL = FALSE null_if = ('') BINARY_FORMAT = utf8 COMPRESSION=NONE);
谢谢您的帮助