This page in other versions: Unsupported versions: 7.1

4.9. Deletions

Deletions are performed using the DELETE command:

DELETE FROM weather WHERE city = 'Hayward';
All weather recording belonging to Hayward are removed. One should be wary of queries of the form
DELETE FROM tablename;
Without a qualification, DELETE will simply remove all rows from the given table, leaving it empty. The system will not request confirmation before doing this.

Submit correction

If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.

Privacy Policy | About PostgreSQL
Copyright © 1996-2016 The PostgreSQL Global Development Group