for all entries in 需要check内表是否为空check T1 is not initial.不为空创建一个类型相同的临时表用临时表=主表赋值排序:sort 临时表 by 字段去重:delete adjacent duplicates from 临时表 comparing 字段查询:select 字段 from db表 into table 内表 for all entries in 临时表 where 条件