0
我有一個名爲proc1的proc,它執行許多DML操作,並選擇一個數據(多條記錄)。現在我需要創建一個名爲proc2的proc(我必須創建一個名爲#hello的搗固表),它將觸發proc1和proc1返回1000條記錄。我如何將它存儲到#hello表中,而不用修改proc1,因爲它不應該改變。 請幫我this.below是例如Sybase ASE從子進程中選擇數據
create proc proc1
as
begin
select * form table
end
create proc proc2
as
begin
create table #hello
exec proc1
--how will i insert proc1 data in #hello table
select * from #hello
end