📜  复制期间雪花中的多种日期格式 - TypeScript 代码示例

📅  最后修改于: 2022-03-11 14:48:27.256000             🧑  作者: Mango

代码示例1
COPY INTO MY_TABLE (NAME, DOB, DOD, HAIR_COLOUR) 
FROM (
   SELECT $1, TO_DATE($2,'YYYYMMDD'), TO_DATE($3,'MM-DD-YYYY'), $4 
   FROM @MY_STAGE/mypeeps (file_format => 'MY_CSV_FORMAT') 
)
ON_ERROR = CONTINUE;