.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal

Home >> Articles >> DataBase >> Post New Resource Bookmark and Share   

 Subscribe to Articles

Cursors in SQL:

Posted By:Athira Sreejith       Posted Date: December 31, 2008    Points: 15    Category: DataBase    URL: http://www.dotnetspark.com  

Cursors in SQL:

A cursor is a database object that help in naccessing and manupulating data in given result set.
The main advantage is that we can process the data row-by -row.

There are four types cursors.

1. Static:

It alwys displays the result set as it was when the cursor opened.
statis cursors are always read-only.

2. Dynamic:
Dynamic cursors are opposite of static cursors.It refers all changes made to the rows in their result set when scrolling through the cursor.

3. Forward- Only:
The forward - only cursors does not support ; it supports
only frtching the rows serially from the start to end of the cursors.

The keyset is the set of key values from all the rows that
qualified for the slect statement at the time the cursor was opened.

 Subscribe to Articles


Further Readings:


No response found. Be the first to respond this post

Post Comment

You must Sign In To post reply
Find More Articles on C#, ASP.Net, Vb.Net, SQL Server and more Here

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend