UBB.Dev
Posted By: oceanwest Search & replace... - 04/08/2004 10:44 PM
I am trying to figure out the correct syntax to do a search and replace on the
subject....

I got the find working...

SELECT *
FROM `w3t_Posts`
WHERE `B_Subject`
LIKE '[FP7] %'



Now I want the '[FP7]' to be changed to '[FM7]'
Posted By: navaho Re: Search & replace... - 04/08/2004 11:30 PM
this is not going to be exact but it will look something like this

UPDATE w3t_Posts SET B_Subject = REPLACE(B_Subject, '[FP7]', '[FM7]');
Posted By: oceanwest Re: Search & replace... - 04/08/2004 11:34 PM
This will not destroy anything else will it?
Posted By: omegatron Re: Search & replace... - 04/09/2004 11:50 PM
Nope
Posted By: oceanwest Re: Search & replace... - 04/16/2004 10:09 PM
Forgot to come back and say thanx...
© UBB.Developers