Oracle SQL,PL/SQL

The Distinction between Implicit and Explicit Cursors

Difference between Implicit and Explicit Cursors
Written by shohal

Difference between Implicit and Explicit Cursors:

Implicit Cursor: When select commands are executed, implicit cursors are created automatically.

Explicit Cursor: The user must define explicit cursors by giving them a name.

Implicit Cursor: They can only retrieve a single row at a time.

Explicit Cursor: Multiple rows can be retrieved by using explicit cursors.

Implicit Cursor: After execution, it automatically closes.

Explicit Cursor: Need to close after execution.

Implicit Cursor: implicit Cursors are characterized as:

BEGIN

SELECT attr_name from table_name

where CONDITION;

END

Explicit Cursor: Explicit Cursors are characterized as:

DECLARE
CURSOR cur_name IS
SELECT attr_name from table_name 
where CONDITION;
BEGIN
...

About the author

shohal

Leave a Comment