■ DAYOFWEEK_ISO 함수를 사용해 해당 주에서 몇번째인지 구하기

----------------------------------------------------------------------------------------------------

SELECT DAYOFWEEK_ISO(CURRENT DATE)

FROM  SYSIBM.SYSDUMMY1

WITH UR;

 

SELECT DAYOFWEEK('2004-08-16')

FROM  SYSIBM.SYSDUMMY1

WITH UR;

----------------------------------------------------------------------------------------------------

Posted by 사용자 icodebroker
TAG