head	1.3;
access;
symbols
	SUPPORT:1.1.1.1
	PG95-DIST:1.1.1;
locks; strict;
comment	@ * @;


1.3
date	96.11.14.10.15.12;	author scrappy;	state dead;
branches;
next	1.2;

1.2
date	96.10.07.02.34.54;	author momjian;	state Exp;
branches;
next	1.1;

1.1
date	96.08.18.22.14.28;	author scrappy;	state Exp;
branches
	1.1.1.1;
next	;

1.1.1.1
date	96.08.18.22.14.28;	author scrappy;	state Exp;
branches;
next	;


desc
@@


1.3
log
@Removed man pages...moved to src/man

Requested by Bryan
@
text
@.\" This is -*-nroff-*-
.\" XXX standard disclaimer belongs here....
.\" $Header: /usr/local/cvsroot/postgres95-support/doc/man/update.l,v 1.2 1996/10/07 02:34:54 momjian Exp scrappy $
.TH UPDATE SQL 11/05/95 Postgres95 Postgres95
.SH NAME
update \(em replace values of attributes in a class
.SH SYNOPSIS
.nf
\fBupdate\fR classname \fBset\fR attname-1 = expression-1,
	{attname-i = expression-i}
	[\fBfrom\fR from-list]
	[\fBwhere\fR qual]
.fi
.SH DESCRIPTION
.BR Update
changes the values of the attributes specified
for all instances which satisfy the qualification,
.IR qual .
Only the attributes to be modified need appear as atributes.
.PP
Array references use the same syntax found in 
.IR select(l).
That is, either single array elements, a range of array elements or
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
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
or qualification.
.SH EXAMPLES
.nf
--
--Give all employees who work for Smith a 10% raise
--
update emp 
   set sal = 1.1 * sal
   where mgr = 'Smith'
.fi
.SH "SEE ALSO"
create table(l),
select(l).
@


1.2
log
@add FROM to update page, clean up spelling error in select.
@
text
@d3 1
a3 1
.\" $Header: /usr/local/cvsroot/postgres95-support/doc/man/update.l,v 1.1.1.1 1996/08/18 22:14:28 scrappy Exp $
@


1.1
log
@Initial revision
@
text
@d3 1
a3 1
.\" $Header: /usr/local/cvsroot/postgres95/doc/man/update.l,v 1.6 1996/07/31 18:43:09 scrappy Exp $
d11 1
d16 1
a16 2
changes the values of the attributes specified in
.IR target_list 
d19 1
a19 2
Only the attributes to be modified need appear in
.IR target_list .
d25 3
@


1.1.1.1
log
@Support Docs & Contrib
@
text
@@
