free classified ads and leads
domain website price


mysql replace text in a table

Database

How i replace text in a table , me using mysql

without any edit into records from website control panel i wish to run a query so all domains like without www will include www.

or

wish to replace a word from a table from expertweb to expertwebworld using one query .

Here is the solution


update table_name set field = replace(field, 'foo', 'bar') where instr(field, 'foo') > 0;

Here field is the column name. it will do this without wasting time to edit the records from admin.
Bookmark and Share




Gallery

Related Topics

Comments



Submit Reviews:


(Enter the characters seen on the image below.)



Promotional Ads

Advertisement

Movers and Packers Zirakpur
zirakpur
Zirakpur

ShreeJi Packers and Movers Chandigarh
Booth No. 6, Plot No. 2212 Pipli Wala Town, Manimarjra, Chandigarh
Chandigarh