-
-
韦韬然 数据老手Lv5
发表于2018-11-28 10:54
悬赏10
已解决

大概是只想要图中红框中的信息,但是第一列最后不一定是‘高管系统’四个字,大概有上百个不同名称和长度的移动门户

select * from es10_vfs where REGEXP_like (parentdir_,'/root/mobileapp/portalapp/\w{2,10}/+$') and filename_ <> 'resource' and filename_ <> 'mobileapp.json'
9个回答
冷色系 发表于 2018-11-28 11:30
模糊查询相关的肯定都会查到,详细查询试一下
模糊查询出来的东西太多了,像上面截图中那一堆我只需要红框中的一条,这个数量级×100多和我手动一个个找旧没区别了
select * from es10_vfs where REGEXP_like (parentdir_,'/root/mobileapp/portalapp/\w{2,10}/+$') and filename_ <> 'resource' and filename_ <> 'mobileapp.json'
用正则大概凑出来个能凑合用的emmm
继续自问自答模式
韦韬然 发表于 2018-11-28 12:10
select * from es10_vfs where REGEXP_like (parentdir_,'/root/mobileapp/portalapp/\w{2,10}/+$') an ...
厉害厉害

-
ESENSOFT官方技术支持 管理员
关贴总结:楼主大大 为啥如此优秀~~
select * from es10_vfs where REGEXP_like (parentdir_,'/root/mobileapp/portalapp/\w{2,10}/+$') and filename_ <> 'resource' and filename_ <> 'mobileapp.json'