biyyss_sun

创建一个存储截过程xx,从表t1中返回结果集

crateproc xx
(@pp int)
as
select * from t1 

 

创建另一存储过程yy,调用xx,并将xx的结果集加入临时表#t2

create proc yy

as

select * into #t2  from t1 where 1<>1

insert  #t2 exec xx 1
select * from #t2  

drop table #t2

分类:

技术点:

相关文章:

  • 2021-10-23
  • 2022-02-05
  • 2022-12-23
  • 2021-07-31
  • 2022-12-23
  • 2022-03-05
  • 2021-06-21
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-02-08
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案