1. 程式人生 > >mysql字串處理技巧

mysql字串處理技巧

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