sql - MySQL substring function to extract string in a URL -


i have url {"gclid":"cj0keqjw7dfkbrcdkkrvmfktyeobeiqach0egq97fbdyrpkv6sumkyhxntklowmywt3sceaol-1umzwaamsk8p8haq","sem_keyword":"+turbolader +einbau","sem_creativeid":"165357442696","sem_matchtype":"b","sem_network":"g","sem_device":"m","sem_placement":"","sem_target":"","sem_adposition":"1t2","sem_param1":"","sem_param2":"","sem_campaignid":"629608072","sem_adgroupid":"38134265464","sem_targetid":"kwd-26982332150","sem_location":"1004645"}

from need extract cj0keqjw7dfkbrcdkkrvmfktyeobeiqach0egq97fbdyrpkv6sumkyhxntklowmywt3sceaol-1umzwaamsk8p8haq, i.e. data between 2 double quotes after gclid. have tried substring functions i'm not able close.

you can use mysql json-functions:

select json_unquote(json_extract(url, '$.gclid')) 

Comments

Popular posts from this blog

What is happening when Matlab is starting a "parallel pool"? -

angular - DownloadURL return null in below code -

php - Cannot override Laravel Spark authentication with own implementation -