March 2001
Intermediate to advanced
640 pages
14h 9m
English
Updating information in a database row is done in much the same way that you would retrieve data using the SELECT statement. The UPDATE statement is used to actually modify data in a table. The syntax of the update statement is
UPDATE <tablename> | <viewname> | <alias>
SET <column> = <New value>[,
<column> = <New value>…]
[FROM <table list>]
[WHERE <Boolean constraint>]
There are three basic sections to the UPDATE statement:
The table that the UPDATE is modifying.
The list of columns that will be updated and their respective new values.
Optionally, you can specify multiple tables if joining tables together to limit the number of rows being updated.
The following example searches the entire customer_demo table looking for a row that ...
Read now
Unlock full access