时间:2021-07-01 10:21:17 帮助过:4人阅读
例如:insert into student(name,age) values(‘fanqi‘,23) select @@identity
例如:INSERT INTO UserInfo(Username,LogName,[Password],resTime) OUTPUT inserted.UserID VALUES (‘12345‘,‘56789‘,‘112233‘,GETDATE())
SqlServer中插入数据后如何得到主键ID
标签:插入 serve word info into sql log use username