INSERT INTO problem_log (
prblm_log_id,
prblm_ans,
prblm_strt_tm,
prblm_end_tm,
prblm_log_ans_yn,
prblm_log_ans_cnt,
file_mng_id,
std_id,
prblm_id
) VALUES (
#{prblmLogId},
#{prblmAns},
#{prblmStrtTm},
#{prblmEndTm},
#{prblmLogAnsYn} ,
#{prblmLogAnsCnt} ,
#{fileMngId},
#{stdId},
#{prblmId}
)
UPDATE problem_log
SET
prblm_ans = #{prblmAns},
prblm_strt_tm = #{prblmStrtTm},
prblm_end_tm = #{prblmEndTm},
prblm_log_ans_yn = #{prblmLogAnsYn},
prblm_log_ans_cnt = #{prblmLogAnsCnt},
file_mng_id = #{fileMngId},
std_id = #{stdId},
prblm_id = #{prblmId}
WHERE prblm_log_id = #{prblmLogId}
DELETE FROM problem_log
WHERE prblm_log_id = #{prblmLogId}