Commit 9d9eadea authored by Bruce Momjian's avatar Bruce Momjian

add FROM to update page, clean up spelling error in select.

parent f6792efc
.\" This is -*-nroff-*- .\" This is -*-nroff-*-
.\" XXX standard disclaimer belongs here.... .\" XXX standard disclaimer belongs here....
.\" $Header: /cvsroot/pgsql/doc/man/Attic/select.l,v 1.1.1.1 1996/08/18 22:14:27 scrappy Exp $ .\" $Header: /cvsroot/pgsql/doc/man/Attic/select.l,v 1.2 1996/10/07 02:34:53 momjian Exp $
.TH SELECT SQL 11/05/95 Postgres95 Postgres95 .TH SELECT SQL 11/05/95 Postgres95 Postgres95
.SH NAME .SH NAME
select \(em retrieve instances from a class select \(em retrieve instances from a class
...@@ -10,7 +10,7 @@ select \(em retrieve instances from a class ...@@ -10,7 +10,7 @@ select \(em retrieve instances from a class
expression1 [\fBas\fR attr_name-1] expression1 [\fBas\fR attr_name-1]
{, expression-1 [\fBas\fR attr_name-i]} {, expression-1 [\fBas\fR attr_name-i]}
[\fBinto\fR \fBtable\fR classname] [\fBinto\fR \fBtable\fR classname]
[\fBfrom\fR from-last] [\fBfrom\fR from-list]
[\fBwhere\fR where-clause] [\fBwhere\fR where-clause]
[\fBgroup by\fR attr_name1 {, attr_name-i....} [\fBgroup by\fR attr_name1 {, attr_name-i....}
[\fBorder by\fR attr_name1 [\fBorder by\fR attr_name1
......
.\" This is -*-nroff-*- .\" This is -*-nroff-*-
.\" XXX standard disclaimer belongs here.... .\" XXX standard disclaimer belongs here....
.\" $Header: /cvsroot/pgsql/doc/man/Attic/update.l,v 1.1.1.1 1996/08/18 22:14:28 scrappy Exp $ .\" $Header: /cvsroot/pgsql/doc/man/Attic/update.l,v 1.2 1996/10/07 02:34:54 momjian Exp $
.TH UPDATE SQL 11/05/95 Postgres95 Postgres95 .TH UPDATE SQL 11/05/95 Postgres95 Postgres95
.SH NAME .SH NAME
update \(em replace values of attributes in a class update \(em replace values of attributes in a class
...@@ -8,21 +8,23 @@ update \(em replace values of attributes in a class ...@@ -8,21 +8,23 @@ update \(em replace values of attributes in a class
.nf .nf
\fBupdate\fR classname \fBset\fR attname-1 = expression-1, \fBupdate\fR classname \fBset\fR attname-1 = expression-1,
{attname-i = expression-i} {attname-i = expression-i}
[\fBfrom\fR from-list]
[\fBwhere\fR qual] [\fBwhere\fR qual]
.fi .fi
.SH DESCRIPTION .SH DESCRIPTION
.BR Update .BR Update
changes the values of the attributes specified in changes the values of the attributes specified
.IR target_list
for all instances which satisfy the qualification, for all instances which satisfy the qualification,
.IR qual . .IR qual .
Only the attributes to be modified need appear in Only the attributes to be modified need appear as atributes.
.IR target_list .
.PP .PP
Array references use the same syntax found in Array references use the same syntax found in
.IR select(l). .IR select(l).
That is, either single array elements, a range of array elements or That is, either single array elements, a range of array elements or
the entire array may be replaced with a single query. the entire array may be replaced with a single query.
.IR from-list
is a non-standard extension to allow columns from
other tables to appear in the target_list.
.PP .PP
You must have write access to the class in order to modify it, as well You must have write access to the class in order to modify it, as well
as read access to any class whose values are mentioned in the target list as read access to any class whose values are mentioned in the target list
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment