State the advatage and disadvantage of Cursor's?

Answers were Sorted based on User's Feedback



State the advatage and disadvantage of Cursor's?..

Answer / shilpa.oracle

Advantage:
Using cursors we can retrieve multiple records in a plsq block.

Disadvantage:
switching between the plsql statement executor and sql
statement executor at plsql runtime engine will consume time.

Is This Answer Correct ?    7 Yes 1 No

State the advatage and disadvantage of Cursor's?..

Answer / swapna

advantage :

In pl/sql if you want perform some actions more than one
records you should user these cursors only. By using these
cursors you process the query records. you can easily move
the records and you can exit from procedure when you
required by using cursor attributes.


disadvantage:

using implicit/explicit cursors are depended by Situation.
If the result set is les than 50 or 100 records it is
better to go for implicit cursors. if the result set is
large then you should use exlicit cursors. other wise it
will put burdon on cpu.

Is This Answer Correct ?    5 Yes 1 No

Post New Answer

More SQL PLSQL Interview Questions

How will you delete a particular row from a Table?

7 Answers   Cap Gemini,


how can stop the sequence with mention the max value and with out mention the max value

1 Answers   Zensar,


What is column?

0 Answers  


What is information schema in sql?

0 Answers  


what are the 'mysql' command line options? : Sql dba

0 Answers  






What are the modes of parameters that can be passed to a procedure ?

3 Answers  


What is the best sql course?

0 Answers  


Why sql query is slow?

0 Answers  


what is the difference between cluster and non cluster index? : Sql dba

0 Answers  


Can a table contain multiple primary key’s?

0 Answers  


Why functions are used in sql?

0 Answers  


How do you take the union of two tables in sql?

0 Answers  


Categories