Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


What are the Diff B/W Cursor and REF Cursor

Answers were Sorted based on User's Feedback



What are the Diff B/W Cursor and REF Cursor..

Answer / guest

Cursor is Static
REF Cursor is Dynamic

Is This Answer Correct ?    10 Yes 1 No

What are the Diff B/W Cursor and REF Cursor..

Answer / anil

1.REF CURSOR  is basically a data type. It is normally declared as type r_cursor is REF CURSOR.
CURSOR is not a datatype.
2.REF CURSOR is dynamic , CURSOR is static
3.REF CURSOR can be passed from one procedure to other procedure but CURSOR cant be passed from one procedure to other.
4. A ref cursor can not be used in CURSOR FOR LOOP, it must be used in simple CURSOR LOOP statement.
5. A ref cursor is defined at runtime and can be opened dynamically but a regular cursor is static and defined at compile time.
6. A ref cursor can be passed to another PL/SQL routine (function or procedure) or returned to a client. A regular cursor cannot be returned to a client application and must be consumed within same routine.
7) A ref cursor incurs a parsing penalty because it cannot cached but regular cursor will be cached by PL/SQL which can lead to a significant reduction in CPU utilization.
8) A regular cursor can be defined outside of a procedure or a function as a global package variable. A ref cursor cannot be; it must be local in scope to a block of PL/SQL code.
9) A regular cursor can more efficiently retrieve data than ref cursor. A regular cursor can implicitly fetch 100 rows at a time if used with CURSOR FOR LOOP. A ref cursor must use explicit array fetching.

Is This Answer Correct ?    7 Yes 0 No

What are the Diff B/W Cursor and REF Cursor..

Answer / anil

1.REF CURSOR  is basically a data type. It is normally declared as type r_cursor is REF CURSOR.
CURSOR is not a datatype.
2.REF CURSOR is dynamic , CURSOR is static
3.REF CURSOR can be passed from one procedure to other procedure but CURSOR cant be passed from one procedure to other.

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More SQL PLSQL Interview Questions

What data types does pl/SQL have?

3 Answers  


What is a design view?

0 Answers  


What is rank function in sql?

0 Answers  


How does sql developer connect to oracle database?

0 Answers  


What are sql injection vulnerabilities?

0 Answers  


differentiate between float and double. : Sql dba

0 Answers  


What is difference between select statement and cursor

3 Answers   JDA,


How do you declare a constant?

0 Answers  


define sql insert statement ? : Sql dba

0 Answers  


What is the basic difference between a sql and stored procedure ?

2 Answers   L&T,


What do you mean by table in sql?

0 Answers  


How do I remove sql developer from windows 10?

0 Answers  


Categories