|
发表于 2022-1-12 18:52
来自手机
|
显示全部楼层
create temp table aa as select *,regexp2('(((?:油品|仪电|物资|二联合|四联合|五联合|工程|保运)(?:部|处)?)(\d+-\d+-\d+)\s*([\x{4e00}-\x{9fa5}]{1,})\s*(1\d{10}))|((?:油品|仪电|物资|二联合|四联合|五联合|工程|保运)(?:部|处)?)\s*([^\d]{2,3})\s*(\d+-\d+-\d+)[,,\s]*(1\d{10})',微信接龙正则拆分,2) a,regexp2('(((?:油品|仪电|物资|二联合|四联合|五联合|工程|保运)(?:部|处)?)(\d+-\d+-\d+)\s*([\x{4e00}-\x{9fa5}]{1,})\s*(1\d{10}))|((?:油品|仪电|物资|二联合|四联合|五联合|工程|保运)(?:部|处)?)\s*([^\d]{2,3})\s*(\d+-\d+-\d+)[,,\s]*(1\d{10})',微信接龙正则拆分,3) b,regexp2('(((?:油品|仪电|物资|二联合|四联合|五联合|工程|保运)(?:部|处)?)(\d+-\d+-\d+)\s*([\x{4e00}-\x{9fa5}]{1,})\s*(1\d{10}))|((?:油品|仪电|物资|二联合|四联合|五联合|工程|保运)(?:部|处)?)\s*([^\d]{2,3})\s*(\d+-\d+-\d+)[,,\s]*(1\d{10})',微信接龙正则拆分,4) c,regexp2('(((?:油品|仪电|物资|二联合|四联合|五联合|工程|保运)(?:部|处)?)(\d+-\d+-\d+)\s*([\x{4e00}-\x{9fa5}]{1,})\s*(1\d{10}))|((?:油品|仪电|物资|二联合|四联合|五联合|工程|保运)(?:部|处)?)\s*([^\d]{2,3})\s*(\d+-\d+-\d+)[,,\s]*(1\d{10})',微信接龙正则拆分,5) c2,regexp2('(((?:油品|仪电|物资|二联合|四联合|五联合|工程|保运)(?:部|处)?)(\d+-\d+-\d+)\s*([\x{4e00}-\x{9fa5}]{1,})\s*(1\d{10}))|((?:油品|仪电|物资|二联合|四联合|五联合|工程|保运)(?:部|处)?)\s*([^\d]{2,3})\s*(\d+-\d+-\d+)[,,\s]*(1\d{10})',微信接龙正则拆分,6) d,regexp2('(((?:油品|仪电|物资|二联合|四联合|五联合|工程|保运)(?:部|处)?)(\d+-\d+-\d+)\s*([\x{4e00}-\x{9fa5}]{1,})\s*(1\d{10}))|((?:油品|仪电|物资|二联合|四联合|五联合|工程|保运)(?:部|处)?)\s*([^\d]{2,3})\s*(\d+-\d+-\d+)[,,\s]*(1\d{10})',微信接龙正则拆分,7) e,regexp2('(((?:油品|仪电|物资|二联合|四联合|五联合|工程|保运)(?:部|处)?)(\d+-\d+-\d+)\s*([\x{4e00}-\x{9fa5}]{1,})\s*(1\d{10}))|((?:油品|仪电|物资|二联合|四联合|五联合|工程|保运)(?:部|处)?)\s*([^\d]{2,3})\s*(\d+-\d+-\d+)[,,\s]*(1\d{10})',微信接龙正则拆分,8) f,regexp2('(((?:油品|仪电|物资|二联合|四联合|五联合|工程|保运)(?:部|处)?)(\d+-\d+-\d+)\s*([\x{4e00}-\x{9fa5}]{1,})\s*(1\d{10}))|((?:油品|仪电|物资|二联合|四联合|五联合|工程|保运)(?:部|处)?)\s*([^\d]{2,3})\s*(\d+-\d+-\d+)[,,\s]*(1\d{10})',微信接龙正则拆分,9) g,regexp2('1\d{10}',微信接龙正则拆分) h,regexp2('((?:油品|仪电|物资|二联合|四联合|五联合|工程|保运)(?:部|处)?)',微信接龙正则拆分) i from 微信接龙正则拆分;select *,iif(e is null,c,e) b1, iif(trim(f)='' or d is null,b,f) c1 from aa |
-
|