How to replace parts of a text field using SQL in MySQL

Post Reply
User avatar
Saman
Lieutenant Colonel
Lieutenant Colonel
Posts: 828
Joined: Fri Jul 31, 2009 10:32 pm
Location: Mount Lavinia

How to replace parts of a text field using SQL in MySQL

Post by Saman » Tue Jun 29, 2010 8:40 am

Code: Select all

UPDATE table_name SET field_name=REPLACE(field_name, 'old text', 'new text');
Post Reply

Return to “PHP & MySQL”