create database dbDemo go use dbDemo go create table tdstudent
{
id int primary key identity(1,1),
name varchar(20)
}
go insert into table values('kuuga');select @@identity @@IDENTITY返回为当前会话的所有作用域中的任何表最后生成的标识值
2024-02-06 22:50:22
create database dbDemo go use dbDemo go create table tdstudent
{
id int primary key identity(1,1),
name varchar(20)
}
go insert into table values('kuuga');select @@identity @@IDENTITY返回为当前会话的所有作用域中的任何表最后生成的标识值