Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

postgresql delete multiple rows

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 (?,?,?,?,?,?,?,?)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #postgresql #delete #multiple #rows
ADD COMMENT
Topic
Name
6+1 =