About 902,000 results
Open links in new tab
  1. SQL | SEQUENCES - GeeksforGeeks

    Jan 13, 2025 · SQL sequences offer flexibility, performance, and ease of use, making them indispensable in managing and organizing data in large-scale applications. In this article, we will explain SQL sequences in-depth, explaining how they work, their advantages, syntax, and real-world use cases.

  2. CREATE SEQUENCE (Transact-SQL) - SQL Server | Microsoft Learn

    Nov 19, 2024 · Creates a sequence object and specifies its properties. A sequence is a user-defined schema bound object that generates a sequence of numeric values according to the specification with which the sequence was created.

  3. Sequence with examples in SQL Server - GeeksforGeeks

    Aug 20, 2024 · To generate a sequence of numbers, we can use the CREATE SEQUENCE statement in SQL Server. Below is an example of how to create a sequence named geeks_num that starts at 10 and increments by 10 each time it’s called.

  4. SQL Server: Create and Use Sequence - TutorialsTeacher.com

    You can refer a sequence to generate values with specific increment and interval on each execution by using NEXT VALUE FOR. You don't need to insert a row in a table (like identity column) to generate the sequence. Use the CREATE …

  5. An Essential Guide to SQL Server Sequence By Practical Examples

    In SQL Server, a sequence is a user-defined schema-bound object that generates a sequence of numbers according to a specified specification. A sequence of numeric values can be in ascending or descending order at a defined interval and may cycle if requested. To create a new sequence object, you use the CREATE SEQUENCE statement as follows:

  6. Creating Sequential Numbers in SQL Server

    Feb 1, 2021 · SQL Server introduces a brand new schema bound object called SEQUENCE. Sequence generates numeric values based on the specification of a SEQUENCE object. You can generate numeric values in either ascending or descending order and they can be independent of tables unlike IDENTITY columns.

  7. Sequence Objects in SQL Server - GeeksforGeeks

    Dec 30, 2023 · Let's take a look at a simple example of a sequence object creating primary key values using sequence. Query: START WITH 201232. INCREMENT BY 1. MAXVALUE 999999.

  8. How to Create a Sequence in SQL Server - Database.Guide

    Dec 14, 2022 · We can use sequences to display our own unique number in the results of a SELECT query. But we can also generate a sequence number without querying a table or going anywhere near a table. Here are examples of using T-SQL to create sequences in SQL Server. Basic Sequence. Here’s an example of creating a simple sequence: CREATE SEQUENCE ...

  9. SQL Server: Sequences (Autonumber) - TechOnTheNet

    The syntax to create a sequence in SQL Server (Transact-SQL) is: [ AS datatype ] [ START WITH value ] [ INCREMENT BY value ] [ MINVALUE value | NO MINVALUE ] [ MAXVALUE value | NO MAXVALUE ] [ CYCLE | NO CYCLE ] [ CACHE value | NO CACHE ]; It can be BIGINT, INT, TINYINT, SMALLINT, DECIMAL, or NUMERIC.

  10. SQL Server Sequence

    In SQL Server, a sequence is a user-defined object that generates a sequence of numbers in a particular order. A sequence of numeric values can be in ascending or descending order at a defined interval and may cycle if requested. CREATE SEQUENCE allows you to create a new sequence in SQL Server.

Refresh