November 2003
Intermediate to advanced
816 pages
14h 53m
English
The UPDATE command changes existing data in a table.
The complete syntax and the arguments of UPDATE can be found on page 448, in section 4.2.2. The following code shows the basics of the UPDATE syntax and some examples of its use.
UPDATE { table_name | view_name | rowset_function_limited }
SET column_name
= { expression | DEFAULT | NULL } [ ,...n ]
[ WHERE < search_condition > ]
Let's first create a sample database with some sample data to play with. (Execute each “SQL:” section separately or add “go” after each to make it a separate batch.)
Display the data before making ... |
Read now
Unlock full access