PhpCms V9 uses SQL to modify keywords in batches

Source: Internet
Author: User


The PHPCSM content management system has a good experience in all aspects! However, it was discovered that it had been officially acquired by Shanda. It is found that the official pace is not keeping up with the user's needs. In earlier versions of PHPcms2008, keyword batch replacement is available. However, the new version of PHPcms V9 is not provided with a small function to replace keywords in batches. The new version also records SQL statements that replace keywords in batches in a new blog for users.

The code is as follows: Copy code

/* Article title */
Update v9_news set title = replace (title, 'Key of The error', 'replace with new ');
/* Article description */
Update v9_news set description = replace (description, 'Key of The error', 'replace with new ');
/* Keyword */
Update v9_news set keywords = replace (keywords, 'Key of The error', 'replace with new ');
/* Article content */
Update v9_news_data set content = replace (content, 'Key of The error', 'replace with new ');


Simple and powerful SQL statements. Thank you for your strong suggestions.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.