Click here to Skip to main content
15,902,492 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi
Can anyone explain me difference between ref cursor and simple cursor in oracle
with proper example.




Thanking you in advance,

Shilpi
Posted

1 solution

REF cursor is a dynamic cursor that supports change of query at runtime. Typically, REF cursor is used to return a record set or a cursor from stored procedure.
where as
Normal cursor is a static cursor where the query is assigned at design time and it can not be changed at runtime.

Refer:
MSDN: Working with Oracle REF CURSORs[^]
Oracle/PLSQL Topics: Cursors[^]
 
Share this answer
 
Comments
pinki30dec 29-Jun-12 1:21am    
Thanks for your reply,..But i want a code so that i can understand how these two terminology practically different..
Sandeep Mewara 29-Jun-12 2:55am    
Whats so confusing right now?

Further, the link shared has examples for them. Did you see?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900