Hi,
Plz reply this -
I try to Find & Replace Data in MySQL ?
Thanks
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Arjun PanwarPosted Dec 24, 2011, 3:07 AM
Satyapriya NayakPosted Dec 24, 2011, 2:13 AM
update tablename set columnname = (replace(columnname,'string_to_find','string_to_replace')
Example:-
UPDATE student SET sname=(REPLACE (sname,'Harry','Barry'))
Thanks
Chintan RathodPosted Dec 24, 2011, 12:12 AM
UPDATE table_name SET field_name = replace( field_name, 'string_to_find', 'string_to_replace' ) ;
Example,
UPDATE wp_comments SET author_url = replace( author_url, 'http://website', 'http://website.com/' ) ;