Joomla Jumpstart

  • Increase font size
  • Default font size
  • Decrease font size
Home General Joomla! MySQL Tips and Tricks MySQL SQL Query MySQL Update: Search and Replace

MySQL Update: Search and Replace

E-mail Print PDF
User Rating: / 3
PoorBest 

Use the MySQL Replace function to find and replace in MySQL.

 

MySQL Replace function

To use a MySQL statement to remove all paragraph tags:

 

UPDATE `jos_content` SET introtext = replace(introtext,"<p>","") WHERE `title` REGEXP '-0';

 This can be usefull with Joomla documents -- especially when they are imported into Joomla from another source. 

 Additional Sources

 
tomeiytdg0 @JulesJordan http://t.co/VqNZGiqv
by tomeiytdg0. Link: web
tomeiytdg0 @Charlie_Masser http://t.co/VqNZGiqv
by tomeiytdg0. Link: web
MakeMoney73 coldfusion hosting: CFFile, http://t.co/ycmzNHWH, Php, MySQL, MS Sql 2008 - 24/7 support - $10/month http://t.co/SA7Rs14j
by MakeMoney73. Link: Google
tomeiytdg0 @QB_Hill http://t.co/VqNZGiqv
by tomeiytdg0. Link: web

Google AdSense


Coffee and Cream Publishing