첨부 소스 코드는 나눔고딕코딩 폰트를 사용합니다.
728x90
반응형
728x170
SELECT
    TARGET_DATE               AS "날짜"
   ,TO_CHAR(TARGET_DATE, 'W') AS "주차"
FROM
(
    SELECT DATE_TRUNC('MONTH', CURRENT_DATE)::DATE + I AS TARGET_DATE
    FROM GENERATE_SERIES(0, 30) AS T(I)
) A
WHERE EXTRACT(MONTH FROM TARGET_DATE) = EXTRACT(MONTH FROM CURRENT_DATE);
728x90
반응형
그리드형(광고전용)
Posted by icodebroker

댓글을 달아 주세요