我想做这样的事情:
DELETE FROM table WHERE id IN (SELECT ....)
我怎样才能做到这一点?
如果必须选择ID:
DELETE FROM table WHERE id IN (SELECT id FROM somewhere_else)
如果您已经知道它们(并且它们不在成千上万):
DELETE FROM table WHERE id IN (?,?,?,?,?,?,?,?)