update ${tableName} set ${updateSegment} where ${where} DELETE FROM ${tableName} where ${where} DELETE FROM ${tableTempName} where EXISTS ( SELECT pre_merge_id from maintain_detail d where parent_id = ${maintainFieldId} and d.pre_merge_id = ${tableTempName}.id )