How can I get data from a stored procedure into a temp table?

前端 未结 4 2043
孤独总比滥情好
孤独总比滥情好 2020-12-15 22:24

Am working on sybase ASE 15. Looking for something like this

Select * into #tmp exec my_stp;

my_stp returns 10 data rows with two columns i

4条回答
  •  -上瘾入骨i
    2020-12-15 23:03

    Not sure about Sybase, but in SQL Server the following should work:

    INSERT INTO #tmp (col1,col2,col3...) exec my_stp

提交回复
热议问题