Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

delete from select postgresql

DELETE FROM mytable 
WHERE ctid IN (
    SELECT ctid
    FROM mytable 
    GROUP BY s.serialId, s.valuetimestamp
    ORDER BY s.serialId
    LIMIT 10
)
Source by www.postgresqltutorial.com #
 
PREVIOUS NEXT
Tagged: #delete #select #postgresql
ADD COMMENT
Topic
Name
6+3 =