存储过程要返回一个记录集。存储过程中创建了一个临时表。请问这个记录集可不可以用select语句从临时表中选择
可以
select *
from #temp
no problem,example:
create proc test
as
set nocount on
insert into #temp select * from sales where qty>=10
select * from #temp
go