1、使用举例:regexp_extract(field,'(1[0-9]{10})',0) 获取手机号部分。field字段中含有手机号,'(1[0-9]{10})'是手机号的正则,0表示第一个满足的字符串;
2、使用正则作为过滤条件:mobile regexp '^1[0-9]{10}'。
上一篇:nginx 启动报错:Job for nginx.service failed because the control process exited with error code
下一篇:linux下Mysql导出数据到文件的方法