You are on page 1of 1

Cursor refers to a private work area assigned by Oracle to process the SQL / PLS SQL.

Stetament
Types: Implicit & Explicit
Implicit: Whenever we are using any SQL queries Oracle assigns a private work area to statement after processing the work area is lost user cannot
access the Implicit Cursor area. But if you want to check how many records got effected with your statment youcan use built in function ROWCOUNT.
Explicit: When we are declering a cursor open it fetch the data one row at a time or we can say whit the explicit cursor we are assigning a private work
area to our statement when Oracle process the statement we can apply different cursor function ISOPEN FOUND etc to access the details of statement.
Explicit cursor can be paramaterized
When we are talking about refcursors its a cursor varible which is efficient then cursors.
types of refcursors are
Strong (Refcursor with return type)
Weak (Refcursor without return type)

Explicit cursors are created by the programmer and programmer have control on it
Programmer can 1) Open
2) Close
3) Fetch
and do some manipulations on the values
Explicit Cursors are classified into
1) Normal cursor
2) Parameterized cursor
3) Cursor For Loops and
4) REF cursors
REF Cursors:
Normally when we create a normal cursor we cant change the select query associated to that query (the query which is given at the time of definition)
But using REF cursors we can change the cursor statement also.

You might also like