by 메밀묵도토리묵 [SQL Query] mariadb dbeaver [2022.07.27 14:55:13]
select date_format(attend_dt, '%Y-%m-%d') as attend_dt
from tb_int_attendlist_spc
/////
UPDATE tb_int_attendlist_spc set
fixed_id = CASE WHEN '${strCheck(cond.fixed_id)}' = '' THEN NULL ELSE '${strCheck(cond.fixed_id)}' END
where attend_dt = '${strCheck(cond.attend_dt)}'
and emp_no = '${strCheck(cond.emp_no)}'
맨 위 select문에서 변경된 모양의 attend_dt를 아래 update에서 attend_dt를 update하기 전에 올바르게 넣어주고 싶은데, 혹시 어떻게 하는지 아시는 분 있나요?
위의 select 문에서 attend_dt는 2022-02-01인데, 아래에서는 20220201이라서 update문이 실행이 되지 않아서 여쭤봅니다...