请问在写存储过程时怎样创建临时表,怎样向临时表中添加数据??(急) create proc xxascreate table #aa(a int)insert #aa values(1) 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 --请问在写存储过程时怎样创建临时表,怎样向临时表中添加数据?create proc pascreate table #t(id int,b name)insert into #t values(1,'张三')go 例如:create proc testasselect * into #tempfrom sysobjectsselect * from #tempdrop table #tempgo 或:create proc testasselect * into #新临时表 from 你的表select * from #新临时表 好像不用手动删除#temp吧,存储过程执行完#temp会自动删除 Real 类型计算 请教一个跟存储过程有关的问题 如何比较两个表是否含有相同的列值? 弱弱地问:我的这个ID为什么不能自动加1呢?谢谢! 如何编写一个常驻内存的作业呀? DBMail系统表显示状态是sent,但是收不到邮件 一个好奇怪的存储过程问题 update的问题 难题,SQL 高手请进。 按时间查询前一次的记录 敏感字段的加密问题 请问:多个查询语句怎样能放在一个存储过程吗??
as
create table #t(id int,b name)
insert into #t values(1,'张三')
go
create proc test
asselect * into #temp
from sysobjectsselect * from #tempdrop table #tempgo
as
select * into #新临时表 from 你的表select * from #新临时表