Answers for "make id auto increment sql alter"

SQL
5

sql query to make a existing column auto increment

Alter table table_name modify column_name datatype(length) AUTO_INCREMENT PRIMARY KEY
Posted by: Guest on October-28-2020
0

sql auto_increment syntax

CREATE TABLE [dbo].[MY_TABLE] (
    [ID] INT NOT NULL IDENTITY(1, 1),
    [NAME]          NVARCHAR (100) NULL,
    [SCHOOL]             NVARCHAR (100) NULL,
    PRIMARY KEY (ID)
);
Posted by: Guest on October-25-2021

Code answers related to "make id auto increment sql alter"

Code answers related to "SQL"

Browse Popular Code Answers by Language