Advertisement
TDCustmerSupportJP

Untitled

Aug 15th, 2017
9,109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MySQL 0.49 KB | None | 0 0
  1. SELECT td_url,
  2.   -- 'http(s)://' を除外 --
  3.   regexp_replace(td_url,'http(.)*://','') AS replace1,
  4.   --'?'以降のパラメータを除外 --
  5.   regexp_replace(td_url,'\?(.)*','') AS replace2,
  6.   -- レコードの末尾の '/' を除外 --
  7.   regexp_replace(td_url,'/$','') AS replace3,
  8.   -- 'http(s)://' を除外 | '?'以降のパラメータを除外 | レコードの末尾の '/' を除外 --
  9.   regexp_replace(td_url,'http(.)*://|\?(.)*|/$','') AS replace4
  10. FROM access_log
  11. LIMIT 10
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement