|
create temp table aa as
select regreplace('有限责任公司|有限公司|分公司|厂|商行|能源|科技|矿业|加工|设备|物流','',供应商名称) 供应商名称2,供应商名称 from 供应商名称;
create temp table bb as
select regexp2('(?:收到|收回发票)([\x{4e00}-\x{9fa5}]+)',摘要,1) 摘要2,* from 账上进项;
create temp table cc as
select aa.*,bb.摘要2,udf_numofsame(供应商名称2,摘要2) 相同字符串 from aa,bb;
create temp table dd as
select *,max(cast(相同字符串 as int)) from cc where cast(相同字符串 as int)>1 group by 摘要2;
//select * from dd limit 12;
//select rowid,* from bb limit 10;
select bb.rowid,月,日,凭证号,摘要,供应商名称,相同字符串 from bb left join dd using(摘要2); |
评分
-
1
查看全部评分
-
|