82,700 results
Open links in new tab
  1. Syntax of for-loop in SQL Server - Stack Overflow

    May 20, 2011 · SQL is a very different language compared to what you're used to. It's focused on what, not how. You tell SQL Server …

  2. SQL 'FOR LOOP' Statement: A Comprehensive Tutorial - Reintech

    Sep 24, 2023 · Deep dive into the 'FOR LOOP' statement in SQL with our comprehensive tutorial. Learn the syntax, understand the …

  3. SQL FOR Loop Alternatives

    Dec 13, 2021 · Learn different ways to create FOR Loops using T-SQL such as using WHILE loops, cursors, tally tables and more.

  4. FOR Clause (Transact-SQL) - SQL Server | Microsoft Learn

    Jul 20, 2026 · Applies to: SQL Server Azure SQL Database Azure SQL Managed Instance SQL analytics endpoint in Microsoft Fabric …

  5. FOR LOOP Statement - Oracle Help Center

    With each iteration of the FOR LOOP statement, its statements run, its index is either incremented or decremented, and control returns …

  6. PL/SQL For Loop - GeeksforGeeks

    Oct 17, 2024 · PL/SQL stands for Procedural Language/ Structured Query Language. It has block structure programming features. …

  7. How do I loop through a set of records in SQL Server?

    How do I loop through a set of records from a select statement? Say I have a few records that I wish to loop through and do …

  8. SQL Server: FOR LOOP - TechOnTheNet

    Learn how to simulate the FOR LOOP in SQL Server (Transact-SQL) with syntax and examples. In SQL Server, there is no FOR LOOP. …

  9. Loops in MySQL - GeeksforGeeks

    Sep 8, 2026 · MySQL supports three main types of loops: LOOP, WHILE and REPEAT, along with flow-control statements such as IF, …

  10. WHILE (Transact-SQL) - SQL Server | Microsoft Learn

    Nov 2, 2026 · WHILE sets a condition for the repeated execution of a SQL statement or statement block.