UPDATE v15
You can use the UPDATE
command available in the SQL language in SPL programs.
You can use an expression in the SPL language wherever an expression is allowed in the SQL UPDATE
command. Thus, you can use SPL variables and parameters 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
You can include the UPDATE
command 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.
export const _frontmatter = {"title":"UPDATE"}