UPDATE v11
The UPDATE
command available in the SQL language can also be used in SPL programs.
An expression in the SPL language can be used wherever an expression is allowed in the SQL UPDATE
command. Thus, SPL variables and parameters can be used to supply values to the update operation.
The SQL%FOUND
conditional expression returns TRUE
if a row is updated, FALSE
otherwise. See Obtaining the Result Status for a discussion of SQL%FOUND
and other similar expressions.
The following shows the update on the employee using this procedure.
Note
The UPDATE
command can be included in a FORALL
statement. A FORALL
statement allows a single UPDATE
command to update multiple rows from values supplied in one or more collections. See Using the FORALL Statement for more information on the FORALL
statement.