How to figure out this query:
I want to find in column details where matches image.GIF with this query:
SELECT * FROM `news` WHERE details LIKE '%image.GIF%'
Then I have other column 'title' I want to rename these entries on 'title column' where related to above query.
UPDATE `news`
SET `details` = replace(details, 'image.GIF', 'new_image.GI')
I hope It's understandable.
Column details - in this column to find all rows with text image.gif;
Column title - to rename all things inside to new_image.gif where belonging to details column;
UPDATE `news` SET `details` = replace(details, 'image.GIF', 'new_image.GI') WHERE details LIKE '%image.GIF%'new_image.gifof both the title and details columns?