current_datetime 열에 시간이 출력이 안되요!
insert into 5_days(name, current_datetime) select '팀회의',convert_tz(now(), 'utc', 'Asia/Seoul')-- 현재 시간 및 날짜를 출력 union all select name, case when weekday(now()) between 0 and 4 then convert_tz(now(),'utc','Asia/Seoul')-- 월요일부터 금요일까지를 시스템 시간으로 변환합니다. else convert_tz(now(),'utc','Asia/Seoul') end from 5_days; 문제가 있나요?
Loading...