what is cursor in sql
In SQL (Structured Query Language), a cursor is a database object that allows users to access and manipulate data row by row, instead of fetching the entire result set at once.
What is SQL cursor used for?
In SQL Server, a cursor is a database object that allows us to retrieve and manipulate each row one at a time. It is nothing more than a row pointer. A cursor is always used alongside a SELECT command in SQL. It is typically a set of SQL logic that loops through a set number of rows one by one.
No comments:
Post a Comment