July 2014
Intermediate to advanced
214 pages
4h 47m
English
You use the UPDATE statement to modify an existing table data.
To execute the UPDATE statement, a user must have at least an UPDATE permission assigned on the target table.
The following is the basic syntax for the UPDATE statement:
[WITH <common_table_expression> [, ...n]]
UPDATE
[TOP (expression) [PERCENT]]
table_name | view_name | rowset_function | common_table_expression
[WITH table_hint]
SET column_name = {expression | DEFAULT | NULL} [ ,...n ]
<outputclause>
FROM < table_name | view_name | common_table_expression>
WHERE <search_condition>The following are the arguments of the UPDATE statement:
WITH: This keyword specifies the CTE that you can reference in your UPDATE statementTOP: You specify this ...