星期五, 11月 18, 2011

SQL 常用查詢

  • 從url字串截取domain
    SELECT substring_index(substring_index(trim(leading "https://" from trim(leading http://" from trim(`URL`))), "/", 1), ":", 1) as domain FROM `uchome_app` WHERE 1 `redirect_uri`
    

沒有留言: