PostgreSQL 8.0.1 Documentation | ||||
---|---|---|---|---|
Prev | Fast Backward | Chapter 2. The SQL Language | Fast Forward | Next |
2.9. Deletions
Rows can be removed from a table using the DELETE command. Suppose you are no longer interested in the weather of Hayward. Then you can do the following to delete those rows from the table:
All weather records belonging to Hayward are removed.
One should be wary of statements of the form
Without a qualification, DELETE will remove all rows from the given table, leaving it empty. The system will not request confirmation before doing this!