REreplace is a CF function, not a MySQL function, which is why you're getting the error. MySQL has a 'replace' function though. Something like this should work:
UPDATE myDATE SET textfield = replace(textfield, "Õ","'") Rip out part of the table into a temp table to test against so you can ensure it works first: CREATE TEMPORARY TABLE testTable SELECT * FROM myDATE LIMIT 5 cheers, barneyb On 11/9/05, Les Mizzell <[EMAIL PROTECTED]> wrote: > I've been handed a mySQL database with weird stuff in some text fields: > > Õ instead of ' - for example > or things like ÒSet For LifeÓ for left and right quotes > > I'd like to run a query and remove all these using rereplace, but a test > query like the below is returning an error > > <cfloop query="myQUERY"> > <cfquery> > UPDATE myDATE SET > textfield = REReplace(#textfield#,"Õ","'") > Where ID = #ID# > </cfquery> > </cfloop> > > > There's a massive amount of data, and I'm a little nervous running > something that's going to make so many changes... > > -- > ----------- > Les Mizzell > -- Barney Boisvert [EMAIL PROTECTED] 360.319.6145 http://www.barneyb.com/ Got Gmail? I have 100 invites. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Find out how CFTicket can increase your company's customer support efficiency by 100% http://www.houseoffusion.com/banners/view.cfm?bannerid=49 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:223795 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54