If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > Can You Use A Find & Replace Command

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-13-04, 16:19
ghecko ghecko is offline
Registered User
 
Join Date: Aug 2004
Posts: 1
Lightbulb Can You Use A Find & Replace Command

Hi All

I have a full text field that is in a particular table. Does anyone know if there is a way to run a find and replace command on this field.

For info the field is lots of html text, and the text I want to change is a particular URL within this text.

Any syntax code would be greatly appreciated.

Thanks

PS I have PHPMyAdmin nothing else to connect.
Reply With Quote
  #2 (permalink)  
Old 08-16-04, 15:07
ricker ricker is offline
Registered User
 
Join Date: Aug 2004
Posts: 4
You could try to update such fields using pure SQL:
Code:
UPDATE site_description_table SET site_description_field = REPLACE(site_description_field, 'http://site1.com', 'http://site2.com')
WHERE site_description_field LIKE '%http://site1.com%'
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On