DBILITY

mssql get weekday ( mssql 요일 ) 본문

database/mssql

mssql get weekday ( mssql 요일 )

DBILITY 2022. 9. 26. 12:15
반응형

기록해 두자.

SELECT DATENAME(WEEKDAY,GETDATE()) AS WEEKDAY

--------
WEEKDAY
--------
월요일

SELECT LEFT(DATENAME(WEEKDAY,GETDATE()),1) AS WEEKDAY
--------
WEEKDAY
--------
월
반응형
Comments