Book Contents

Book Index

Next Topic

Home

DELETE

DELETE marks tuples as no longer valid in the current epoch. It does not delete data from disk storage.

Syntax

DELETE FROM table WHERE clause

Semantics

table

specifies the name of a table in the schema. You cannot delete tuples from a projection.

Notes

Examples

DELETE FROM T

WHERE C1 = C2 - C1;

DELETE FROM CUSTOMER

WHERE STATE IN ('MA', 'NH');

SQL Language References

PostgreSQL 8.0.12 Documentation

BNF Grammar for SQL-99