About 44,400 results
Open links in new tab
  1. DECLARE CURSOR (Transact-SQL) - SQL Server | Microsoft Learn

    Nov 18, 2025 · Defines the attributes of a Transact-SQL server cursor, such as its scrolling behavior and the query used to build the result set on which the cursor operates.

  2. SQL Server Cursor Explained By Examples

    In this tutorial, you will learn how to use the SQL Server cursor to process a result set, one row at a time.

  3. SQL Server Cursor Example

    Sep 28, 2025 · A SQL Server cursor is a set of T-SQL logic that loops over a predetermined number of rows one at a time. The purpose of the cursor may be to update one row at a time or perform an …

  4. Cursor in SQL - GeeksforGeeks

    Jan 14, 2026 · A cursor in SQL is a database object used to process data one row at a time, useful when row-by-row handling is needed instead of bulk processing. It temporarily stores data for …

  5. T-SQL Cursors - Create cursors in SQL Server

    To create a cursor, use the CURSOR DECLARE syntax. When you declare a cursor, it is loaded with records, in order to access the records of the cursor it must be opened using OPEN and the rows are …

  6. What is a Cursor in SQL? - Database.Guide

    Nov 18, 2025 · In SQL programming, a cursor is a database object that lets you retrieve and manipulate data one row at a time, rather than working with entire result sets all at once.

  7. SQL Cursor: Syntax, Usage, and Examples - mimo.org

    Learn how to use SQL cursors to process rows one at a time. Includes syntax, usage scenarios, and real-world examples.

  8. What is Cursor in SQL - Explained with Examples - Intellipaat

    Aug 21, 2025 · In SQL, a Cursor is a database object that is used to manipulate one row at a time from the result set. Cursors support sequential data processing of individual rows that are returned by a …

  9. What is the use of a cursor in SQL Server? - Stack Overflow

    Nov 19, 2010 · A cursor can be viewed as a pointer to one row in a set of rows and can only reference one row at a time, but can move to other rows of the result set as needed.

  10. SQL Server Cursors: A How-To Guide - Simple SQL Tutorials

    Jun 9, 2021 · We use a cursor when we need to basically loop through the results of a query, from top to bottom, looking at each row and possibly doing some kind of work on the data. There are several …