what is cursor?why we will go to cursor?advantages &disadvantages of cursors?

Answer Posted / ramya gurrala

Cursor is a pointer(in c/java).Cursor work with DML and information can be accessed.

Cursor is required to process each row individually for queries which return multiple rows.

Advantages:1)We can do operations on each row.
2)Response time is good.
3)Cursors are faster than the while loop.

Disadvantages:1)Repeated network round trips.
2)Occupies more resources and temporary storage.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What the difference between UNION and UNIONALL?

757


What are the new scripting capabilities of ssms? : sql server management studio

727


my name is sejal I have cleared the sbi clerk exam. I am BCA graduate My favorite subject RDBMS Relational database management system. so please send me rRDBMS related interview questions

1708


What is the order by used for?

792


What are the different ways you can create databases in sql server?

774






What are “unrepeatable reads”?

942


What are the types of resultset?

710


What are the export options of ssrs?

151


Why does sql studio use a single registered database repository? : sql server management studio

687


What is the openxml statement in sql server?

730


What is the difference between having clause and where clause in sql server?

778


What is a result set object returned by mssql_query()?

739


What is history table in sql server?

660


What are database states in ms sql server?

832


Mention the differences between local and global temporary tables.

747