.net调用oracle的存储过程报错:必须声明标识符 'PKG_ZHSH.PRO_ZHSH'
.net中的代码:OracleHelper.FillDataTable(CommandType.StoredProcedure,"PKG_ZHSH.PRO_ZHSH",O...
.net中的代码:OracleHelper.FillDataTable(CommandType.StoredProcedure, "PKG_ZHSH.PRO_ZHSH", OracleHelper.SetOutParam("CUR", OracleType.Cursor, 500));
plsqldev中的存储过程
PROCEDURE PRO_ZHSH
(
cur out pkg_general.ROW_CURSOR
)
AS
BEGIN
OPEN cur FOR
SELECT COUNT(*) c FROM bz_ep_sc001
UNION ALL
SELECT COUNT(*) c FROM bz_ep_sc002
UNION ALL
SELECT COUNT(*) c FROM bz_ep_sc003
UNION ALL
SELECT COUNT(*) c FROM bz_ep_sc011
UNION ALL
SELECT COUNT(*) c FROM bz_ep_sc012
UNION ALL
SELECT COUNT(*) c FROM bz_ep_sc109
UNION ALL
SELECT COUNT(*) c FROM bz_ep_JS011
UNION ALL
SELECT COUNT(*) c FROM bz_ep_JS012
UNION ALL
SELECT COUNT(*) c FROM bz_ep_JS013
UNION ALL
SELECT COUNT(*) c FROM bz_ep_JS014
UNION ALL
SELECT COUNT(*) c FROM bz_ep_JS016
UNION ALL
SELECT COUNT(*) c FROM bz_ep_ZJ012
UNION ALL
SELECT COUNT(*) c FROM bz_ep_ZJ013
UNION ALL
SELECT COUNT(*) c FROM bz_ep_ZJ014
UNION ALL
SELECT COUNT(*) c FROM bz_ep_ZJ014
UNION ALL
SELECT COUNT(*) c FROM bz_ep_ZJ101
UNION ALL
SELECT COUNT(*) c FROM bz_ep_ZJ104
UNION ALL
SELECT COUNT(*) c FROM bz_ep_ZJ105;
END PRO_ZHSH;
存储过程能执行成功,也能测试通过,但是在.net里边调用就报错了
急 展开
plsqldev中的存储过程
PROCEDURE PRO_ZHSH
(
cur out pkg_general.ROW_CURSOR
)
AS
BEGIN
OPEN cur FOR
SELECT COUNT(*) c FROM bz_ep_sc001
UNION ALL
SELECT COUNT(*) c FROM bz_ep_sc002
UNION ALL
SELECT COUNT(*) c FROM bz_ep_sc003
UNION ALL
SELECT COUNT(*) c FROM bz_ep_sc011
UNION ALL
SELECT COUNT(*) c FROM bz_ep_sc012
UNION ALL
SELECT COUNT(*) c FROM bz_ep_sc109
UNION ALL
SELECT COUNT(*) c FROM bz_ep_JS011
UNION ALL
SELECT COUNT(*) c FROM bz_ep_JS012
UNION ALL
SELECT COUNT(*) c FROM bz_ep_JS013
UNION ALL
SELECT COUNT(*) c FROM bz_ep_JS014
UNION ALL
SELECT COUNT(*) c FROM bz_ep_JS016
UNION ALL
SELECT COUNT(*) c FROM bz_ep_ZJ012
UNION ALL
SELECT COUNT(*) c FROM bz_ep_ZJ013
UNION ALL
SELECT COUNT(*) c FROM bz_ep_ZJ014
UNION ALL
SELECT COUNT(*) c FROM bz_ep_ZJ014
UNION ALL
SELECT COUNT(*) c FROM bz_ep_ZJ101
UNION ALL
SELECT COUNT(*) c FROM bz_ep_ZJ104
UNION ALL
SELECT COUNT(*) c FROM bz_ep_ZJ105;
END PRO_ZHSH;
存储过程能执行成功,也能测试通过,但是在.net里边调用就报错了
急 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询