Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Deleting specific words from records 4

Status
Not open for further replies.

sinbadly

Technical User
Mar 16, 2006
126
GB
Is it possible to ask the mysql to remove some phrase - like <a href=" for instance - from fields throughout the db, when there's other information in the field that I want to remain, please experts?
 
Code:
update daTable
   set daField 
     = replace(daField
         ,'string to be removed','')
 where daField like
         '%string to be removed%'

r937.com | rudy.ca
 
Many thanks, rudy. It's a piece of coding that will be used often, I think. Very grateful.
 
Many thanks, Justin. Looks very interesting.
 
Many thanks, rudy. It's a piece of coding that will be used often, I think. Very grateful.

indeed! I never knew this could be done!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top