select id, oldid, scoretype, score, value_type, reply, svyid, script_type, script_code, script, topic, sort, ismandatory, ishide, del_flag, orgid, create_by, create_time, update_by, update_time, isupload, upload_time, tag, categoryid, script_content, suitway, isavailable, otherdata, script_picture, language, icd10_name from svy_lib_script insert into svy_lib_script oldid, svyid, script_type, script_code, script, sort, ismandatory, ishide, del_flag, orgid, create_by, create_time, update_by, update_time, isupload, upload_time, tag, categoryid, script_content, suitway, isavailable, language, otherdata, value_type, otherdata, scoretype, score, icd10_name, script_picture, topic, #{oldid}, #{svyid}, #{scripttype}, #{scriptcode}, #{script}, #{sort}, #{ismandatory}, #{ishide}, #{delFlag}, #{orgid}, #{createBy}, #{createTime}, #{updateBy}, #{updateTime}, #{isupload}, #{uploadTime}, #{tag}, #{categoryid}, #{scriptContent}, #{suitway}, #{isavailable}, #{language}, #{otherdata}, #{valueType}, #{therdata}, #{scoretype}, #{score}, #{icd10Name}, #{scriptPicture}, #{topic}, update svy_lib_script oldid = #{oldid}, svyid = #{svyid}, script_type = #{scripttype}, script_code = #{scriptcode}, script = #{script}, sort = #{sort}, ismandatory = #{ismandatory}, ishide = #{ishide}, del_flag = #{delFlag}, orgid = #{orgid}, create_by = #{createBy}, create_time = #{createTime}, update_by = #{updateBy}, update_time = #{updateTime}, isupload = #{isupload}, upload_time = #{uploadTime}, categoryid = #{categoryid}, script_content = #{scriptContent}, suitway = #{suitway}, isavailable = #{isavailable}, tag = #{tag}, language = #{language}, otherdata = #{otherdata}, value_type = #{valueType}, therdata =#{therdata}, scoretype = #{scoretype}, score = #{score}, icd10_name = #{icd10Name}, script_picture = #{scriptPicture}, topic = #{topic}, where id = #{id} update svy_lib_script del_flag =1, where id = #{id} delete from svy_lib_script where id in #{id}