0% found this document useful (0 votes)
55 views

PL/SQL Runtime Engine: Without Bulk Bind Oracle Server

The document compares executing a PL/SQL procedure without and with bulk binding. Without bulk binding, a loop is used to individually update records in a table. With bulk binding, the FORALL statement allows updating multiple records with a single SQL statement, improving performance over individual updates.

Uploaded by

redro
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as XLSX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
55 views

PL/SQL Runtime Engine: Without Bulk Bind Oracle Server

The document compares executing a PL/SQL procedure without and with bulk binding. Without bulk binding, a loop is used to individually update records in a table. With bulk binding, the FORALL statement allows updating multiple records with a single SQL statement, improving performance over individual updates.

Uploaded by

redro
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as XLSX, PDF, TXT or read online on Scribd
You are on page 1/ 2

Without bulk bind

Oracle Server
PL/SQL Runtime Engine

Pl/sql Block SQL Engine


Begin Procedureal
For i in c1 statement
LOOP execution
Update emp set
sal = sal +100
where empno
=i.empno;
end loop;
end;

Using Editor we are developing a SYNTAX:


procedure CREATE [OR REPLACE
1 IS/AS
variables declaration
cursors declaration
userdefined execptions
Show errors Using SQL tool load procedure into
database BEGIN
-------
---Executable Stateme
--------
Compiled EXCEPTION handling
END [procedure_name]
./

Processed

Execute
With Bulk Collect

PL/SQL Runtime Engine

Pl/sql Block SQL Engine


Begin Procedureal
Forall i in c1 statement
v_t.first..v_t.last execution
Update emp set
sal = sal +100
where empno
=v_t.(i);
end;

YNTAX:
CREATE [OR REPLACE] PROCEDURE prcedure_name(formal parameters)
S/AS
variables declaration Procedure Specification
cursors declaration
userdefined execptions
BEGIN
------- Porcedure Body
---Executable Statements
--------
EXCEPTION handling
END [procedure_name];
/

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy