SELECT a.num
,DATEADD(DAY,a.num-1,'20190101')AS ymd
,DATEPART(WEEK,DATEADD(DAY,a.num-1,'20190101'))AS week_no
FROM(SELECTROW_NUMBER()OVER(ORDERBY column_name )AS num
FROM information_schema.columns
) a
WHERE a.num <366
;
dbms/mssql/dev/date.txt · 마지막으로 수정됨: 2018/12/26 16:24 저자 starlits