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

PLSQL

PL/SQL is a programming language extension to SQL that allows for variables, conditions, loops, exceptions, and object-oriented features. PL/SQL blocks have three sections: declaration, execution, and exception handling. Cursors are temporary work areas that store data retrieved from a database query. There are two types of cursors - implicit cursors are created automatically for DML statements while explicit cursors must be created for SELECT statements that return multiple rows. Cursors can hold multiple rows but process them one at a time.
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
58 views

PLSQL

PL/SQL is a programming language extension to SQL that allows for variables, conditions, loops, exceptions, and object-oriented features. PL/SQL blocks have three sections: declaration, execution, and exception handling. Cursors are temporary work areas that store data retrieved from a database query. There are two types of cursors - implicit cursors are created automatically for DML statements while explicit cursors must be created for SELECT statements that return multiple rows. Cursors can hold multiple rows but process them one at a time.
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

ABSTRACT

Pl/sql
PL/SQL stands for Procedural Language extensions to the Structured Query Language or SQL.. SQL is a powerful language for both querying and updating data in relational databases. Oracle introduced PL/SQL to extend some limitations of SQL to provide a more comprehensive solution for building mission-critical applications running on Oracle database. PL/SQL supports variables, conditions, loops and exceptions. Arrays are also supported, though in a somewhat unusual way, involving the use of PL/SQL collections. PL/SQL collections is a slightly advanced topic. Implementations from version 8 of Oracle Database onwards have included features associated with object-orientation.Once the program units have been stored into the database, they become available for execution at a later time. A PL/SQL Block consists of three sections:

The Declaration section (optional). The Execution section (mandatory). The Exception (or Error) Handling section (optional).

Pl/sql cursors
A cursor is a temporary work area created in the system memory when a SQL statement is executed. A cursor contains information on a select statement and the rows of data accessed by it. This temporary work area is used to store the data retrieved from the database, and manipulate this data. A cursor can hold more than one row, but can process only one row at a time. The set of rows the cursor holds is called theactive set. There are two types of cursors in PL/SQL: Implicit cursors: These are created by default when DML statements like, INSERT, UPDATE, and DELETE statements are executed. They are also created when a SELECT statement that returns just one row is executed. Explicit cursors: They must be created when you are executing a SELECT statement that returns more than one row. Even though the cursor stores multiple records, only one record can be processed at a time,

which is called as current row. When you fetch a row the current row position moves to next row. Both implicit and explicit cursors have the same functionality, but they differ in the way they are accessed.

You might also like