Professional Documents
Culture Documents
SQL Interview Question 2
SQL Interview Question 2
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
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.
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