如题
---------------------------------------------------------------
declare @id int
@id=@@identity
---------------------------------------------------------------
select max(id)+1 from table
如题
---------------------------------------------------------------
declare @id int
@id=@@identity
---------------------------------------------------------------
select max(id)+1 from table