select t2u(regexp_extract(event_args['refer'],'(.*?)(token=)(.*)',3))
from event
where date between '2016-06-22' and '2016-06-23'
and event_name = 'web.act.crush.home.view'
sql利用正则从字符串中抽取字段
最新推荐文章于 2024-03-25 09:20:44 发布
本文介绍了一种使用SQL从特定日期范围内的事件中提取token的方法。通过使用正则表达式匹配和自定义函数selectt2u,从名为event_args的字段中抽取token值。此方法适用于web.act.crush.home.view事件。

2290

被折叠的 条评论
为什么被折叠?



