更新时间:2023-12-01 08:47:01
这样做
创建表示例1
(
ID1 INT PRIMARY KEY,
ID2 INT IDENTITY(1,1),
)
并参考
如何到更改列到身份 [ ^ ]
了解更多详情
Do this
create table Example1
(
ID1 INT PRIMARY KEY,
ID2 INT IDENTITY (1, 1),
)
and refer
how-to-alter-column-to-identity[^]
for more details
试试这个,
Try Like this,
create table Example1
(
ID1 INT PRIMARY KEY,
ID2 INT IDENTITY(1,1)
)
这里..
http://msdn.microsoft.com/en-us/library/ms186775 .aspx [ ^ ]
http://www.w3schools.com/sql/sql_autoincrement.asp [ ^ ]
Here..
http://msdn.microsoft.com/en-us/library/ms186775.aspx[^]
http://www.w3schools.com/sql/sql_autoincrement.asp[^]