create table aaa (a uniqueidentifier,b int identity(1,1))
go
insert aaa values(newid())
insert aaa values(newid())
insert aaa values(newid())
go
select * from aaa
go
Create table New_Table
(
ID int identity(1,1) not null,
field1 char(10) null,
...
fieldn nvarchar(255) null
)
以上代码中ID int identity(1,1) not null,这一行就是你所想知道的。