Executes a statement for each row fetched from a table.
ANSI Compliance
FOR is ANSI/ISO SQL:2011-compliant.
Required Privileges
- SELECT privilege on the database object referenced in the specified cursor_specification.
- UPDATE or DELETE privilege if the cursor is updatable.
Invocation
Executable.
Stored procedures only.