Changes data in a row made current by a read cursor by adding data or modifying existing data (cursor event).
Transact-SQL Syntax
update [[database.]owner.]{table_name | view_name}
set [[[database.]owner.]{table_name. | view_name.}] column_name1 = {expression1 | NULL | (select_statement)} [, column_name2 = {expression2 | NULL | (select_statement)} where current of cursor_name
ODBC Syntax
UPDATE table_name
SET column_idenfifier={expression|NULL} [,column_identifier={expression|NULL}]...
WHERE CURRENT OF cursor_name
update authors
set au_lname = @p1
Any valid object in the catalog can be substituted for table_name, view_name, and so forth.
The cursor can be reused multiple times before it is deallocated.
Upon completion of the update command, the number of rows affected must be indicated.
ODBC does not support a from clause in the update statement. The access service ignores the from clause.