1996-08-19 06:14:33 +08:00
|
|
|
.\" This is -*-nroff-*-
|
|
|
|
.\" XXX standard disclaimer belongs here....
|
1996-09-23 16:39:53 +08:00
|
|
|
.\" $Header: /cvsroot/pgsql/doc/man/Attic/delete.l,v 1.2 1996/09/23 08:39:53 scrappy Exp $
|
1996-08-19 06:14:33 +08:00
|
|
|
.TH DELETE SQL 11/05/95 Postgres95 Postgres95
|
|
|
|
.SH NAME
|
|
|
|
delete \(em delete instances from a class
|
|
|
|
.SH SYNOPSIS
|
|
|
|
.nf
|
1996-09-23 16:39:53 +08:00
|
|
|
\fBdelete\fR \fBfrom\fR class_name [ \fBwhere\fR qual ]
|
1996-08-19 06:14:33 +08:00
|
|
|
.fi
|
|
|
|
.SH DESCRIPTION
|
|
|
|
.BR Delete
|
|
|
|
removes instances which satisfy the qualification,
|
1996-09-23 16:39:53 +08:00
|
|
|
.IR qual
|
|
|
|
from the specified class.
|
1996-08-19 06:14:33 +08:00
|
|
|
If the qualification is absent, the effect is to delete all instances
|
|
|
|
in the class. The result is a valid, but empty class.
|
|
|
|
.PP
|
|
|
|
You must have write access to the class in order to modify it, as well
|
|
|
|
as read access to any class whose values are read in the qualification
|
|
|
|
(see
|
|
|
|
.IR "change acl" (l).
|
|
|
|
.SH EXAMPLE
|
|
|
|
.nf
|
|
|
|
--
|
|
|
|
--Remove all employees who make over $30,000
|
|
|
|
--
|
|
|
|
delete from emp where emp.sal > 30000
|
|
|
|
.fi
|
|
|
|
.nf
|
|
|
|
--
|
|
|
|
--Clear the hobbies class
|
|
|
|
--
|
|
|
|
delete from hobbies
|
|
|
|
.fi
|
|
|
|
.SH "SEE ALSO"
|
|
|
|
drop(l).
|