概述
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字符串处理技巧所遇到的程序开发问题。
如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。
发表评论 取消回复