用存储过程返回 @@IDENTITY 就是新增数据ID或者升级到SQL2005以后使用带有output的insert into语句INSERT INTO [表]([字段列表]) output inserted.id VALUES ('字段值')
Select @index