存储过程的联系调用问题declare @Du table
(
name nvarchar(128) null,
Week nvarchar(128) null,
)
Insert into @Du Exec P_Report_GetWeek_Summary '2011/07/20' 报错信息
消息 8164,级别 16,状态 1,过程 P_Report_GetWeek_Summary,第 54 行
An INSERT EXEC statement cannot be nested.
---------------------------?????,Type??Model ? sum ??------------------------------------(0 行受影响)不能潜套
(
name nvarchar(128) null,
Week nvarchar(128) null,
)
Insert into @Du Exec P_Report_GetWeek_Summary '2011/07/20' 报错信息
消息 8164,级别 16,状态 1,过程 P_Report_GetWeek_Summary,第 54 行
An INSERT EXEC statement cannot be nested.
---------------------------?????,Type??Model ? sum ??------------------------------------(0 行受影响)不能潜套
解决方案 »
- 求一个表字段设计问题的解决办法
- 提问:jsp连数据库的测试时,甩出异常:com.microsoft.sqlserver.jdbc.SQLServerException: 。。。。。
- 急!在存储过程中,如何引用临时表?
- 求助一个交叉表,90分全部送上!!!!!!!!!!!!!!!!!!
- feixianxxx 这里的意思就是在name相同的情况下 去掉ID最小的的那个 不懂
- 求一个SQL语句,请高手帮忙!!
- 如何读取订单中的产品,通过BOM表展开计算出产品单价
- 如何将xml导入sql,急~~~~~~~~~~~~~~~~~~~~~~~~~
- SQL Server有问题,求各位老大帮我,分数好商量,在线急等
- SQLPlus 8 中创建自定义数据类型
- sql循环执行。跪求!!!
- 随机抽取表中一条数据...求高手帮忙!!!
declare @Du table
(
name nvarchar(128) ,
Week nvarchar(128)
)
Insert into @Du Exec P_Report_GetWeek_Summary '2011/07/20' 結果集與表變量的字段和類型必髯一致,多了,
CREATE PROC P_Report_GetWeek_Summary
(
@Dt datetime
)
ASSELECT TOP 5 Name,ID FROM sysobjects WHERE crdate<=@Dt
godeclare @Du table
(
name nvarchar(128) ,
Week nvarchar(128)
)
Insert into @Du Exec P_Report_GetWeek_Summary '2011/07/20'
SELECT * FROM @Du/*
name Week
sysrowsetcolumns 4
sysrowsets 5
sysallocunits 7
sysfiles1 8
syshobtcolumns 13
*/
(
name nvarchar(128) null--这里的逗号
Week nvarchar(128) null,
)
Insert into @Du Exec P_Report_GetWeek_Summary '2011/07/20'
(
name nvarchar(128) null,
Week nvarchar(128) null-----这里的逗号
)
Insert into @Du Exec P_Report_GetWeek_Summary '2011/07/20'
(
name nvarchar(128) null,
Week nvarchar(128) null)
Insert into @Du Exec P_Report_GetWeek_Summary '2011/07/20'