首页 > 数据库技术 > 详细

sql delete output

时间:2016-05-16 19:13:29      阅读:192      评论:0      收藏:0      [点我收藏+]

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

原文:http://www.cnblogs.com/honghong75042/p/5498715.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!