July 1999
Intermediate to advanced
502 pages
19h 52m
English
UPDATE
UPDATEtableSETcolumn=value, ... [WHEREclause]
Alters data within a table. This statement is used to change actual
data within a table without altering the table itself. You may use
the name of a column as a value when setting a new value. For
example, UPDATE health SET miles_ran=miles_ran+5
would add five to the current value of the
miles_ran column. The statement returns the number
of rows changed.
You must have UPDATE privileges to use this
statement.
# Change the name 'John Deo' to 'John Doe' everywhere in the people table. UPDATE people SET name='John Doe' WHERE name='John Deo'
Read now
Unlock full access