将存储过程的结果插入临时表
我该怎么办SELECT * INTO [temp table] FROM [stored procedure]
?不FROM [Table]
,没有定义[temp table]
?
Select
所有数据都可以BusinessLine
正常tmpBusLine
工作。
select *into tmpBusLinefrom BusinessLine
我尝试相同,但使用stored procedure
返回数据,并不完全相同。
select *into tmpBusLinefromexec getBusinessLineHistory '16 Mar 2009'
输出消息:
消息156,级别15,状态1,行2关键字'exec'附近的语法不正确。
我已经阅读了几个创建一个与输出存储过程结构相同的临时表的例子,它工作正常,但不提供任何列会很好。
撒科打诨
跃然一笑
素胚勾勒不出你
相关分类