select template_id, template_name, type, polling_method, slave_total, point_total, share, create_time, create_by, update_time, update_by, user_id from iot_var_temp insert into iot_var_temp template_name, type, polling_method, slave_total, point_total, share, create_time, create_by, update_time, update_by, user_id, #{templateName}, #{type}, #{pollingMethod}, #{slaveTotal}, #{pointTotal}, #{share}, #{createTime}, #{createBy}, #{updateTime}, #{updateBy}, #{userId}, update iot_var_temp template_name = #{templateName}, type = #{type}, polling_method = #{pollingMethod}, slave_total = #{slaveTotal}, point_total = #{pointTotal}, share = #{share}, create_time = #{createTime}, create_by = #{createBy}, update_time = #{updateTime}, update_by = #{updateBy}, user_id = #{userId}, where template_id = #{templateId} delete from iot_var_temp where template_id = #{templateId} delete from iot_var_temp where template_id in #{templateId}