http截取域名
select substring(
REPLACE (
REPLACE (
concat(params['url'],'/'),
"https://",
""
),
"http://",
""
),
1,
locate(
"/",
REPLACE (
REPLACE (
concat(params['url'],'/'),
"https://",
""
),
"http://",
""
)
) - 1
),count(1) total from exostsdk.exostsdk where event_id='00075|004' and appid = '004' and day='2018-10-24' and cm = 'IN' group by
substring(
REPLACE (
REPLACE (
concat(params['url'],'/'),
"https://",
""
),
"http://",
""
),
1,
locate(
"/",
REPLACE (
REPLACE (
concat(params['url'],'/'),
"https://",
""
),
"http://",
""
)
) - 1
)
order by total desc limit 200
最后
以上就是矮小草丛最近收集整理的关于mysql字符串处理技巧的全部内容,更多相关mysql字符串处理技巧内容请搜索靠谱客的其他文章。
发表评论 取消回复