select d.id, d.user_id, d.exam_id, d.qu_id, d.repo_id, d.title, d.del_flag, d.creater_code, d.createdate, d.updater_code, d.updatedate, d.sort, d.is_right from t_el_user_qu d
SELECT seq_t_el_user_qu.NEXTVAL as id FROM DUAL
insert into t_el_user_qu
id,
user_id,
exam_id,
qu_id,
repo_id,
title,
del_flag,
creater_code,
createdate,
updater_code,
updatedate,
sort,
is_right,
#{id},
#{userId},
#{examId},
#{quId},
#{repoId},
#{title},
#{delFlag},
#{createrCode},
#{createdate},
#{updaterCode},
#{updatedate},
#{sort},
#{isRight},
update t_el_user_qu
user_id = #{userId},
exam_id = #{examId},
qu_id = #{quId},
repo_id = #{repoId},
title = #{title},
del_flag = #{delFlag},
creater_code = #{createrCode},
createdate = #{createdate},
updater_code = #{updaterCode},
updatedate = #{updatedate},
sort = #{sort},
where id = #{id}
update t_el_user_qu set del_flag = 2 where id = #{id}
update t_el_user_qu set del_flag = 2 where id in
#{id}