possible with one query?

Questions about the MySQL, PostgreSQL, and most other databases, as well as using it with PHP can be asked here.

Moderator: General Moderators

Post Reply
pedroz
Forum Commoner
Posts: 99
Joined: Thu Nov 03, 2005 6:21 am

possible with one query?

Post by pedroz »

Is this possible to do it with one query?

I have the following table

table_posts
id : post-status : post-type : post-type : post-parent
50 : publish : post : null : null
51 : null : null : revision : 50
52 : null : null : revision : 50
53 : publish : page : null : null
54 : null : null : revision : 53

how can i delete records 51 and 52 ?
mikosiko
Forum Regular
Posts: 757
Joined: Wed Jan 13, 2010 7:22 pm

Re: possible with one query?

Post by mikosiko »

:?: :?: :?:

Code: Select all

AND id IN (51, 52)
Post Reply