select t.CARNO, t.KEYID ,t.CARNO_COLOR, t.COMPANYID, t.TERMCOMPANY,sc.COMPANY_NAME, sc.COMPANY_FULLNAME, sc.COMPANY_SYS_NAME from
lbs.t_pmt_register_term t LEFT JOIN lbsbus.t_sys_company sc ON sc.COMPANY_NAME = t.COMPANYID
WHERE regexp_like(t.CARNO,'([京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼]{1}(([A-HJ-Z]{1}[A-HJ-NP-Z0-9]{5})|([A-HJ-Z]{1}(([DF]{1}[A-HJ-NP-Z0-9]{1}[0-9]{4})|([0-9]{5}[DF]{1})))|([A-HJ-Z]{1}[A-D0-9]{1}[0-9]{3}警)))|([0-9]{6}使)|((([沪粤川云桂鄂陕蒙藏黑辽渝]{1}A)|鲁B|闽D|蒙E|蒙H)[0-9]{4}领)|(WJ[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼·•]{1}[0-9]{4}[TDSHBXJ0-9]{1})|([VKHBSLJNGCE]{1}[A-DJ-PR-TVY]{1}[0-9]{5})'
) ;
标签:NAME,DF,COMPANY,HJ,sc,正则,oracle,CARNO From: https://www.cnblogs.com/daofree/p/17412961.html