34,838
社区成员




create table tb(id int identity(1000,1),col varchar(10))
insert into tb select 'abc'
go
select * from tb
drop table tb
/*
id col
----------- ----------
1000 abc
(1 行受影响)
*/
identity(数据类型,初始值,增量)
select id=identity(int,10000,1),* from tb