日期:2014-05-16 浏览次数:20537 次
with dc as ( select id, Xname, replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(dcname, '电力', ''), '发电', ''), '有限', ''), '公司',--……过滤同类字符 '') dcn from XXX ) select d1.id,d1.Xname,d2.Xname,UTL_MATCH.edit_distance_similarity(d1.dcn,d2.dcn) smi from dc d1 ,dc d2 where d1.id<>d2.id and d1.dcn is not null and d2.dcn is not null order by smi desc