mysql字串處理技巧
阿新 • • 發佈:2018-12-17
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