I have a CURSOR then why we need BULK COLLECT again?
Answer Posted / priya
"PL/SQL sends SQL statements such as DML and queries to the
SQL engine for execution, and SQL returns the results to
PL/SQL. You can minimize the performance overhead of this
communication between PL/SQL and SQL by using the PL/SQL
features that are known collectively as bulk SQL.
The FORALL statement sends INSERT, UPDATE, or DELETE
statements in batches, rather than one at a time. The BULK
COLLECT clause brings back batches of results from SQL. If
the DML statement affects four or more database rows, bulk
SQL can improve performance considerably.
Bulk SQL uses PL/SQL collections to pass large amounts of
data back and forth in single operations. This process is
called bulk binding. If the collection has n elements, bulk
binding uses a single operation to perform the equivalent of
n SELECT INTO, INSERT, UPDATE, or DELETE statements. A query
that uses bulk binding can return any number of rows,
without requiring a FETCH statement for each one."
| Is This Answer Correct ? | 9 Yes | 0 No |
Post New Answer View All Answers
What problem one might face while writing log information to a data-base table in pl/sql?
Which one is faster ienumerable or iqueryable?
what are all the different normalizations? : Sql dba
What are the disadvantages of not performing database normalization?
What is the most restrictive isolation level? : Transact sql
what are the advantages of mysql in comparison to oracle? : Sql dba
What is rank dense_rank and partition in sql?
What is consistency?
List out the acid properties and explain?
What will you get by the cursor attribute sql%found?
How much does sql cost?
what is error ora-03113: end-of-file on communication channel?
How do you update a table in sql?
Can we use distinct and group by together?
Define tables and fields in a database