Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 1

What is meant by Expressions?

Expressions are made up of a series of literals and variables that are separated by operators. Operators are
used in PL/SQL to manipulate, compare, and calculate data. Expressions are made up of two parts, operators
and operands.

Which Cursor Attributes are the Result of a Saved DML Statement, when it
is Executed?

The statement’s result is saved in four cursor attributes. The four attributes are:

 SQL% FOUND
 SQL% NOTFOUND
 SQL% ROWCOUNT
 SQL% ISOPEN

What is a Cursor? Why is it Required?

A cursor is a temporary work area that is created in system memory when an SQL statement is executed. A
cursor contains information on a select statement and the row of data accessed by it. This temporary work area
stores the data, which is retrieved from the database, to manipulate it. A cursor can hold more than one row but
can process only one row at a time. A cursor is required to process rows individually for queries.

What are the Types of Cursors?

There are two types of cursors:

 Implicit Cursor: When PL/SQL executes an SQL statement, it automatically constructs a cursor without
specifying one; these cursors are known as implicit PL/SQL uses implicit cursors for the following
statements:
o INSERT
o UPDATE
o DELETE
o SELECT

You might also like