Search
 
SCRIPT & CODE EXAMPLE
 

SQL

wordpress delete post revisions older than date "sql"

DELETE a,b,c FROM wp_posts a WHERE a.post_type = 'revision' LEFT JOIN wp_term_relationships b ON (a.ID = b.object_id) LEFT JOIN wp_postmeta c ON (a.ID = c.post_id);
Comment

PREVIOUS NEXT
Code Example
Sql :: sqlite3 show columns name 
Sql :: sql add column after another column 
Sql :: alter table add column forigen key mysql 
Sql :: Get Minimum from multiple columns sql 
Sql :: sql concat string with column value 
Sql :: SQL Server Get the current identity value of the table 
Sql :: sqlalchemy left join 
Sql :: date diff sql 
Sql :: insert query return id mysql 
Sql :: install postgresql centos 5 
Sql :: mysql regex replace 
Sql :: oracle trigger after logon on database 
Sql :: foreign key mysql 
Sql :: how to print mysql query of codeigniter query builder 
Sql :: Alter table add column in SQL Server- NAYCode.com 
Sql :: oracle show column of table 
Sql :: date_part mysql 
Sql :: postgres delete all tables 
Sql :: rename database in sql 
Sql :: postgresql insert column 
Sql :: select nextval from sequence sql 
Sql :: cursor.execute in python sqlite3 
Sql :: sql server output parameter 
Sql :: select new table sql 
Sql :: database dump mysql command 
Sql :: check if sql is installed 
Sql :: xampp import sql file command line 
Sql :: how to identify locked tables in sql server 
Sql :: sql delete all values in a column 
Sql :: how to drop a unique constraint in sql 
ADD CONTENT
Topic
Content
Source link
Name
1+7 =