码迷,mamicode.com
首页 > 数据库 > 详细

sql delete output

时间:2016-05-16 19:14:13      阅读:164      评论: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
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!