INSERT INTO schedule (schdl_id ,schdl_dt ,schdl_unit ,book_id ,std_id ) VALUES (#{scheduleId} ,now() ,#{scheduleUnit} ,#{bookId} ,#{stdId} ); UPDATE schedule SET schdl_unit = #{scheduleUnit} , book_id = #{bookId} WHERE schdl_id = #{scheduleId} DELETE FROM schedule WHERE schdl_id = #{scheduleId}