select open change scope Open full search

PG.CENTER connects PostgreSQL documentation, reference, and ecosystem knowledge. Maintained by Pigsty.

Unsupported versions: 7.0
Historical version. PostgreSQL 7.0 reached end of support in May 2005. See the current manual for supported releases.

Deletions

Deletions are performed using the DELETE command:

DELETE FROM weather WHERE city = 'Hayward';
    
All weather recording belongs to Hayward is removed. One should be wary of queries of the form
DELETE FROM classname;
    
Without a qualification, DELETE will simply remove all instances of the given class, leaving it empty. The system will not request confirmation before doing this.

Report a documentation issue

Read the upstream documentation. For corrections, first check the current manual.