Hi,
Plz reply this -
I try to Find & Replace Data in MySQL ?
Thanks
Find & Replace in MySQL
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Chintan RathodRank #516 · 4.8K reputationPosted Dec 23, 2011, 7:12 PM EST
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/' ) ;
Satyapriya NayakRank #47 · 31.5K reputationPosted Dec 23, 2011, 9:13 PM EST
update tablename set columnname = (replace(columnname,'string_to_find','string_to_replace')
Example:-
UPDATE student SET sname=(REPLACE (sname,'Harry','Barry'))
Thanks
Arjun PanwarRank #254 · 9.9K reputationPosted Dec 23, 2011, 10:07 PM EST