Define an Explicit Cursor in Oracle

Q

How To Define an Explicit Cursor in Oracle?

✍: FYIcenter.com

A

An explicit cursor must be defined in the declaration part of a procedure or function with the CURSOR ... IS statement as shown in the following sample script:

DECLARE
  CURSOR c_list IS SELECT * FROM countries;
  CURSOR t_list IS SELECT * FROM employees
    WHERE employee_id = 100;
BEGIN
  NULL;
END;
/

 

Open and Close an Explicit Cursor in Oracle

Loop through the Implicit Cursor in Oracle

Working with Cursors in Oracle PL/SQL

⇑⇑ Oracle Database Tutorials

2018-07-22, 1440🔥, 0💬