Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

identity syntax in sql

IDENTITY[(seed,increment)]
--seed is the value of the first row loaded into the table
--increment is the incremental value added to the identity value of the previous row.
--should only contain ONE identity PER TABLE

--example:
CREATE TABLE EMPLOYEE  
(  
   IID INT IDENTITY(1,1),  
   NAME [varchar](MAX) NOT NULL,  
   AGE INT NOT NULL  
) 
Source by www.c-sharpcorner.com #
 
PREVIOUS NEXT
Tagged: #identity #syntax #sql
ADD COMMENT
Topic
Name
7+7 =