Flashnux

GNU/Linux man pages

Livre :
Expressions régulières,
Syntaxe et mise en oeuvre :

ISBN : 978-2-7460-9712-4
EAN : 9782746097124
(Editions ENI)

GNU/Linux

RedHat 5.2

(Apollo)

update(l)


UPDATE

UPDATE

NAME
SYNOPSIS
DESCRIPTION
EXAMPLES
SEE ALSO

NAME

update - replace values of attributes in a class

SYNOPSIS

update classname set attname-1 = expression-1

[, attname-i = expression-i]

[from from-list]

[where qual]

DESCRIPTION

Update changes the values of the attributes specified for all instances which satisfy the qualification, qual. Only the attributes to be modified need appear as atributes.

Array references use the same syntax found in select(l). That is, either single array elements, a range of array elements or the entire array may be replaced with a single query. from-list is a non-standard extension to allow columns from other tables to appear in the target_list.

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.

EXAMPLES

--
--Give all employees who work for Smith a 10% raise
--
update emp
set sal = 1.1 * sal
where mgr = ’Smith’

SEE ALSO

create table(l), select(l).



update(l)