INSERT INTO southExam(examid,examtype,title,description,exampapercount,exampapers,created,starttime,endtime,isnetexam,isrecommend,isoral,teacherid,assignTime) VALUES ( (SELECT NEXTVAL('seq_SouthExamId')), #{examid}, #{examtype},#{title},#{description},#{exampapercount},#{exampapers},#{created},#{starttime},#{endtime},#{isnetexam},#{isrecommend},#{isoral},#{teacherid},#{assignTime}) INSERT INTO ClassOwnSouth(classesid,examid,areaid,objecttype) VALUES (#{classesid},#{examid},#{areaid},#{objecttype}) UPDATE southExam examtype = #{examtype}, isrecommend = #{isrecommend}, title = #{title}, description = #{description}, exampapercount = #{exampapercount}, exampapers = #{exampapers}, created = #{created}, starttime = #{starttime}, endtime = #{endtime}, isnetexam = #{isnetexam}, teacherid = #{teacherid}, isoral = #{isoral}, status = #{status} WHERE examid = #{examid}