what are the advantages of cursors than procedures?

Answers were Sorted based on User's Feedback



what are the advantages of cursors than procedures?..

Answer / kumar srinivasalu

Cursors can be used to pass the parameters to procedures
and functions. The Single cursor used to multiple
updatation and used multiple queries at run time

Is This Answer Correct ?    16 Yes 0 No

what are the advantages of cursors than procedures?..

Answer / somashekhar m

By using cursors It is possible to fetch row by row, when
user might want to work with rows one at a time. But not
possible with SQL standard statements it is not possible to
go row by row fetching.
A cursor can be defined as is a set of rows together with a
pointer that identifies a current row.

in ACID cursor works for consistency of the data.

Is This Answer Correct ?    12 Yes 2 No

Post New Answer

More SQL PLSQL Interview Questions

What is nosql db?

0 Answers  


Difference between IN and EXISTS

4 Answers   Nous, Polaris,


Hi all, i have a table as follows empid empname mgrid deptid 1 a 3 4 2 b 1 5 3 c 2 3 4 d 3 6 5 e 4 7 i want the output as empname mgrname a c b a c b d c e d

4 Answers  


What is oracle and pl sql?

0 Answers  


What are the different types of tables in sql?

0 Answers  






suppose I have two table one Emp and other is dpt. Emp table has a field ,dept id,name ,sal and dpt table has a field dept id,dept name. Now I want to find out the emplyee list whose sal is between 2000-3000 from dept x.

7 Answers   Geometric Software, IBM,


what is a database lock ? : Sql dba

0 Answers  


i have a customer table. trans_id trans_date trans_amt debit_credit_indicator 001 01-JAN-13 1099 cr 001 12-JAN-13 500 db 002 24-FEB-13 400 db 002 23-MAR-13 345 cr 001 18-APR-13 800 cr 002 15-MAR-13 600 db 001 12-FEB-13 200 cr i want like this output. trans_id trans_amt debit_credit_indicator i want get highest credit amount and lowest credit amount and highest debit amount and lowest debit amount for each trans_id.

2 Answers   Oracle,


What does select * from mean in sql?

0 Answers  


Why use triggers in sql?

0 Answers  


What does (+) mean in sql joins?

0 Answers  


What are the different sql commands?

0 Answers  


Categories