sql delete output
Posted 光阴易逝,岂容我待
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了sql delete output相关的知识,希望对你有一定的参考价值。
select * into #student1 from student
select * from #student1
create table #temp2( id int not null,name nvarchar(50))
--drop table #temp2
CREATE TABLE #tempCodes (PromotionsCode VARCHAR(50),CustomerId int)
delete from #student1 output deleted.id, deleted.id into #temp2 where id=1
select * from #temp2
以上是关于sql delete output的主要内容,如果未能解决你的问题,请参考以下文章