Delete all SQL statements to be reviewed by zhimeng

Source: Internet
Author: User

Remind me first

Archives is the dedecms master table.
Addonarticle news info table

Run the following command in the dede background "system-" SQL command line tool "(Note: All unaudited data is deleted after running. Be careful when using this command)

The Code is as follows:
Delete from 'dede _ archives 'where arcrank =-1; // www.111cn.net
 

Run phpmyadmin

SQL statements help you delete all unaudited documents in dede background

Lx is the table prefix.

The Code is as follows:
DELETE 'lx _ archives '. *, 'lx _ addonarticle '. * FROM 'lx _ archives 'left JOIN 'lx _ addonarticle 'ON 'lx _ archives '. id = 'lx _ addonarticle '. aid WHERE 'lx _ archives '. arcrank = '-1'
 

The editor of the getting together tutorial thinks that the deletion is cleaner later, because the latter deletes the data waiting for review in all tables.

For more details, see: http://www.111cn.net/wy/CMS/58157.htm

Related Article

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.