Chapter Contents

Previous

Next
The SQL Procedure

UPDATE Statement


Modifies a column's values in existing rows of a table or view.

Restriction: You cannot use UPDATE on a table accessed via an engine that does not support UPDATE processing.
Featured in: Updating Data in a PROC SQL Table


UPDATE table-name|sas/access-view|proc-sql-view <AS alias>
SET column=sql-expression
<,column=sql-expression>...
<SETcolumn=sql-expression
<,column=sql-expression>...>
<WHEREsql-expression>;


Arguments

alias
assigns an alias to table-name, sas/access-view, or proc-sql-view.

column
specifies a column in table-name, sas/access-view, or proc-sql-view.

sas/access-view
specifies a SAS/ACCESS view.

sql-expression
See sql-expression .

table-name
specifies a PROC SQL table.

proc-sql-view
specifies a PROC SQL view.


Updating Tables through Views
You can update one or more rows of a table through a view, with some restrictions. See Updating PROC SQL and SAS/ACCESS Views .


Details


Chapter Contents

Previous

Next

Top of Page

Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.