tags:

views:

51

answers:

1

I want to do something like this:

... DELETE FROM table WHERE id IN (SELECT ....)

How can I do that?

+3  A: 

If you have to select the id:

 DELETE FROM table WHERE id IN (SELECT id FROM somewhere_else)

If you already know them (and they are not in the thousands):

 DELETE FROM table WHERE id IN (?,?,?,?,?,?,?,?)
Thilo
+1 - Not sure why the downvote?
Sachin Shanbhag