📜  sql代码示例中的标识语法

📅  最后修改于: 2022-03-11 15:05:32.159000             🧑  作者: Mango

代码示例2
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  
)