INSERT INTO unit_learning (learning_id, unit_id, prblm_id, wd_book_id, text_id, eval_id, seq) VALUES (#{item.learning_id}, #{item.unit_id}, #{item.prblm_id}, #{item.wd_book_id}, #{item.text_id}, #{item.eval_id}, #{item.seq}) UPDATE unit_learning SET seq = #{seq} WHERE unit_id = #{unit_id} AND prblm_id = #{prblm_id} AND wd_book_id = #{wd_book_id} AND text_id = #{text_id} AND eval_id = #{eval_id} DELETE FROM unit_learning WHERE unit_id = #{unit_id}