mutiple date formats in snowflake during copy

Solutions on MaxInterview for mutiple date formats in snowflake during copy by the best coders in the world

showing results for - "mutiple date formats in snowflake during copy"
Alessia
12 Sep 2020
1COPY INTO MY_TABLE (NAME, DOB, DOD, HAIR_COLOUR) 
2FROM (
3   SELECT $1, TO_DATE($2,'YYYYMMDD'), TO_DATE($3,'MM-DD-YYYY'), $4 
4   FROM @MY_STAGE/mypeeps (file_format => 'MY_CSV_FORMAT') 
5)
6ON_ERROR = CONTINUE;
7
similar questions