FOR EXECUTE STATEMENT
Executes dynamically created SQL statements and loops over its result set
[label:] FOR <execute_statement> DO <compound_statement>
Argument | Description |
---|---|
label |
Optional label for |
execute_stmt |
An |
compound_statement |
A single statement, or statements wrapped in |
The statement FOR EXECUTE STATEMENT
is used, in a manner analogous to FOR SELECT
, to loop through the result set of a dynamically executed query that returns multiple rows.