How to mass edit database

I hope someone can help me change entries in a database en masse.

In the image, the thumbnail entry is the one that needs changing.


database-edit.JPG · 68.7K · 429 views
ManOfTeal.COM a Proud UNA site, six years running strong!
Quote · 27 Aug 2014

I can only guess this is what you want with the very limited information you gave.

UPDATE Games SET thumbnail = 'http://yourdomain.com/images/wtfareyoutalkingabout.gif' where thumbnail = 'http://yourdomain.com/images/3d.gif';

https://dolphin-techs.com - Skype: Dolphin Techs
Quote · 27 Aug 2014

 RE

I can only guess this is what you want with the very limited information you gave.

UPDATE Games SET thumbnail = 'http://yourdomain.com/images/wtfareyoutalkingabout.gif' where thumbnail = 'http://yourdomain.com/images/3d.gif';

 Sorry, didn't try to be vague, just am not sure about how to ask it I guess.

I have been manually updating, removing the "http://yourdomain.com/leaving the "/images/wtfareyoutalkingabout.gif"


so basically I need to "strip" out the leading website URL.

ManOfTeal.COM a Proud UNA site, six years running strong!
Quote · 27 Aug 2014

I would imagine he is needing to update just the URL portion of the thumbnail. Wouldn't something more like this be appropriate. Sorry guess I posted this while you were posting. Now edited.

UPDATE table_name SET field_name = '/images/' WHERE field_name = 'http://jacksonville.dyndns.tv/images/';

Quote · 27 Aug 2014

Make a backup of the table and run the following command:

UPDATE `Games` SET `thumbnail` = replace(`thumbnail`, 'http://jacksonville.dyndns.tv', '')

Dedicated servers for as little as $32 (28 euro) - See http://denre.com for more information
Quote · 27 Aug 2014

 RE

UPDATE `Games` SET `thumbnail` = replace(`thumbnail`, 'http://jacksonville.dyndns.tv', '')

 That is the one!

Thanks Denre and all the others!

ManOfTeal.COM a Proud UNA site, six years running strong!
Quote · 27 Aug 2014
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.