Update Statement; Syntax Description Of Update - HP Neoview SQL Reference Manual

Hide thumbs Also See for Neoview SQL:
Table of Contents

Advertisement

UPDATE Statement

"Syntax Description of UPDATE"

"Considerations for UPDATE"
"Examples of UPDATE"
The UPDATE statement is a DML statement that updates data in a row or rows in a table or
updatable view. Updating rows in a view updates the rows in the table on which the view is
based.
Searched UPDATE is:
UPDATE [NOMVLOG] [WITH NO ROLLBACK] table
| STREAM (table) [AFTER LAST ROW]
SET (column1, ..., columnN) = {(value1, ..., valueN) | (select-subquery)}
set-clause [,set-clause ]...
[SET ON ROLLBACK set-roll-clause [,set-roll-clause]...]
[WHERE search-condition]
[[FOR] access-option ACCESS]
set-roll-clause is:
column-name = expression
access-option is:
READ COMMITTED
| SERIALIZABLE
| REPEATABLE READ
| SKIP CONFLICT
Syntax Description of UPDATE
NOMVLOG
specifies that the operation will not be recorded in the log table. Once this option is used, a
materialized view will no longer be consistent with its base tables and re computing it
produces a different result.
WITH NO ROLLBACK
specifies that the transaction within which the delete statement is executing does not rollback
if a transaction aborts. If you specify this option when AUTOCOMMIT is set to OFF an error
code is generated. If the AUTOCOMMIT option is set to OFF, you can use the SET
TRANSACTION statement to enable the NO ROLLBACK option for the transaction. See
"SET TRANSACTION Statement" (page
An error message is generated if one of the following is true:
WITH NO ROLLBACK used with STREAM clause
WITH NO ROLLBACK used with SET ON ROLLBACK clause
Expression on right hand side set-clause contains anything other than constant literals
WITH NO ROLLBACK used with WHERE CURRENT OF clause (positioned update)
WITH NO ROLLBACK used with embedded UPDATE
table
names the user table or view to update. table must be a base table or an updatable view.
To refer to a table or view, use the ANSI logical name.
See
"Database Object Names" (page
166).
196).
UPDATE Statement
169

Advertisement

Table of Contents
loading

Table of Contents