UPDATE

The UPDATE statement is used to modify column values in existing rows in a table. The UPDATE statement specifies the table to be updated, the columns to update, the new values to assign those columns, and criteria for the rows to updated. Table 21.7 describes the components of an UPDATE statement.

Table 21.7. Components of an SQL UPDATE Statement
ComponentDescription
UPDATESpecifies the table to be updated
SETSpecifies columns to update and the new values to assign to those columns
FROMSpecifies the tables to include in the UPDATE statement
WHERESpecifies the criteria to determine which rows' columns are to be updated

Setting Columns to a Fixed Value with UPDATE Statement

In some cases, you might want to update columns in a table with a fixed ...

Get Microsoft® SQL Server™ 2000 DBA Survival Guide, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.