📜  postgresql 删除多行 - SQL 代码示例

📅  最后修改于: 2022-03-11 15:05:10.340000             🧑  作者: Mango

代码示例1
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 (?,?,?,?,?,?,?,?)