EXECUTE IMMEDIATE BULK COLLECT v13
The BULK COLLECT clause can be used with a EXECUTE IMMEDIATE statement to specify a collection to receive the returned rows.
EXECUTE IMMEDIATE '<sql_expression>;'
BULK COLLECT INTO <collection> [,...]
[USING {[<bind_type>] <bind_argument>} [, ...]}];collection specifies the name of a collection.
bind_type specifies the parameter mode of the bind_argument.
- A
bind_typeofINspecifies that thebind_argumentcontains a value that is passed to thesql_expression. - A
bind_typeofOUTspecifies that thebind_argumentreceives a value from thesql_expression. - A
bind_typeofIN OUTspecifies that thebind_argumentis passed tosql_expression, and then stores the value returned bysql_expression.
bind_argument specifies a parameter that contains a value that is either passed to the sql_expression (specified with a bind_type of IN), or that receives a value from the sql_expression (specified with a bind_type of OUT), or both (specified with a bind_type of IN OUT).
If a single collection is specified, then collection may be a collection of a single field, or a collection of a record type; if more than one collection is specified, each collection must consist of a single field.