if (exists (select * from sys.objects where name = 'Page_UserInfo')) drop proc Page_UserInfo --判断存储过程是否存在,存在则删除然后重建。
go
create proc Page_UserInfo --创建存储过程
as
set nocount on; --不返回计数,提高应用程序性能
begin --开始
create table #t20170413
(
col_1 varchar(100) ,
col_2 varchar(100)
)
insert into #t20170413 values ('aaa','bbb');
select * from #t20170413
--select * from tempdb.sys.tables where name like '#t20170413%'
end
EXEC Page_UserInfo
创建临时表
最新推荐文章于 2023-05-29 16:33:47 发布