select id, templateQuestionID, templateQuestionNum, nextQuestionNum, templateID, switchID, switchDescription, switchText, switchWav, switchTempWav, targetType, categoryName, targetValue, targetid, questionTargetid, basicRegex, selfRegex, regexUsedType, language, isEnable, playType, del_flag, update_by, update_time, create_by, create_time, isupload, upload_time, orgid, pid, guid from ivr_liba_template_target insert into ivr_liba_template_target templateQuestionID, templateQuestionNum, nextQuestionNum, templateID, switchID, switchDescription, switchText, switchWav, switchTempWav, targetType, categoryName, targetValue, targetid, questionTargetid, basicRegex, selfRegex, regexUsedType, language, isEnable, playType, del_flag, update_by, update_time, create_by, create_time, isupload, upload_time, orgid, pid, guid, #{templateQuestionID}, #{templateQuestionNum}, #{nextQuestionNum}, #{templateID}, #{switchID}, #{switchDescription}, #{switchText}, #{switchWav}, #{switchTempWav}, #{targetType}, #{categoryName}, #{targetValue}, #{targetid}, #{questionTargetid}, #{basicRegex}, #{selfRegex}, #{regexUsedType}, #{language}, #{isEnable}, #{playType}, #{delFlag}, #{updateBy}, #{updateTime}, #{createBy}, #{createTime}, #{isupload}, #{uploadTime}, #{orgid}, #{pid}, #{guid}, update ivr_liba_template_target templateQuestionID = #{templateQuestionID}, templateQuestionNum = #{templateQuestionNum}, nextQuestionNum = #{nextQuestionNum}, templateID = #{templateID}, switchID = #{switchID}, switchDescription = #{switchDescription}, switchText = #{switchText}, switchWav = #{switchWav}, switchTempWav = #{switchTempWav}, targetType = #{targetType}, categoryName = #{categoryName}, targetValue = #{targetValue}, targetID = #{targetid}, questionTargetid = #{questionTargetid}, basicRegex = #{basicRegex}, selfRegex = #{selfRegex}, regexUsedType = #{regexUsedType}, language = #{language}, isEnable = #{isEnable}, playType = #{playType}, del_flag = #{delFlag}, update_by = #{updateBy}, update_time = #{updateTime}, create_by = #{createBy}, create_time = #{createTime}, isupload = #{isupload}, upload_time = #{uploadTime}, orgid = #{orgid}, pid = #{pid}, guid = #{guid}, where id = #{id} update ivr_liba_template_target del_flag = 1 where id = #{id} delete from ivr_liba_template_target where id in #{id}