What is diff between bulk collect and forall
Answer Posted / prabhudatta barick
#"The keywords BULK COLLECT tell the SQL engine to bulk-bind output collections before returning them to the PL/SQL engine.
#You can use these keywords in the SELECT INTO, FETCH INTO, and RETURNING INTO clauses. Here is the syntax:
... BULK COLLECT INTO collection_name[, collection_name] ..."
#"The keyword FORALL instructs the PL/SQL engine to bulk-bind input collections before sending them to the SQL engine.
Although the FORALL statement contains an iteration scheme, it is not a FOR loop. Its syntax follows:
FORALL index IN lower_bound..upper_bound
sql_statement;
The index can be referenced only within the FORALL statement and only as a collection subscript.
The SQL statement must be an INSERT, UPDATE, or DELETE statement that references collection elements. And, the bounds must specify a valid range of consecutive index numbers.
The SQL engine executes the SQL statement once for each index number in the range."
| Is This Answer Correct ? | 5 Yes | 0 No |
Post New Answer View All Answers
Can we rename a column in the output of sql query?
What are the three pl sql block types?
Is keyword pl sql?
How do I find duplicates in a single column in sql?
Explain the difference between triggers and constraints?
Does sql profiler affect performance?
Is sql a dbms?
What are secondary keys?
What is database migration?
What is a design view?
What does sql stand for?
How do I pipe the output of one isql to another?
How many primary keys can a table have?
How to Declare Fixed Length String Value In PL SQL
what is blob? : Sql dba