https://blog.csdn.net/Chao_Qing/article/details/106215212
如有一列【地区】,取值都类似【北京/上海】,需要提取前面的北京,及匹配中文
select
regexp_extract(地区,'[\\u4e00-\\u9fa5]+',0) as diqu
from
cat_info
https://blog.csdn.net/Chao_Qing/article/details/106215212
如有一列【地区】,取值都类似【北京/上海】,需要提取前面的北京,及匹配中文
select
regexp_extract(地区,'[\\u4e00-\\u9fa5]+',0) as diqu
from
cat_info