I have a table that has URLs captured that have a number of parameters. The URLs look like this: http://www.xxxx.com/?p=XXX&impfield1=QQQ&impfield2=YYY&testfield=ZZZ
I’m trying to write a query that will strip out specific parameters, i.e., impfield1.
How can I do this in MySQL? I’ve tried the preg_replace plugins but I was unable to get them installed on my windows MySQL server (installed using the WAMP bundle).
Thanks!
You would be much better off doing this through PHP or some kind of scripting language that has DB access. You could write a simple function to string search and replace.