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: / 0
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

 
iemploytoolbar Now hiring: Wanted MYSQL Database Cities attractions by VACA: We need an MYSQL database that inc... http://bit.ly/9hnTEd #jobs #hiring #job
by iemploytoolbar. Link: twitterfeed
pobrezagal puto mysql
by pobrezagal. Link: web
hulufans Now hiring: Wanted MYSQL Database Cities attractions by VACA: We need an MYSQL database that inc... http://bit.ly/9hnTEd #jobs #hiring #job
by hulufans. Link: twitterfeed
ServSafePro Now hiring: Wanted MYSQL Database Cities attractions by VACA: We need an MYSQL database that inc... http://bit.ly/9hnTEd #jobs #hiring #job
by ServSafePro. Link: twitterfeed

Google AdSense