【问题标题】:Oracle Stored procedure error in select选择中的Oracle存储过程错误
【发布时间】:2015-05-02 13:54:20
【问题描述】:

在执行此过程时,我收到这样的错误。如何在 oracle 11g 中执行此操作?

ORA-06550: line 2, column 1:
PLS-00306: wrong number or types of arguments in call to 'SP_SELECT_CUSTOMER'
ORA-06550: line 2, column 1:
PL/SQL: Statement ignored

我的程序是

CREATE OR REPLACE PROCEDURE SP_SELECT_CUSTOMER (
p_cust_details OUT SYS_REFCURSOR)
IS
BEGIN
OPEN p_cust_details for SELECT Name, Address, Contact FROM customer;
END;
/

【问题讨论】:

  • 向我们展示 java 方面...
  • 你是如何执行你的程序的?可以发帖吗?
  • @Lalit Kumar B,我再次收到错误消息。我也检查了你的代码。它显示相同的错误。
  • @antonio,我正在像这样执行开始 SP_SELECT_CUSTOMER;结束;

标签: java asp.net oracle stored-procedures oracle11g


【解决方案1】:

您发送的参数少于或多于过程,或者您向过程发送了错误的类型参数

【讨论】:

  • 检查我的代码。我没有将任何参数传递给我的程序。
猜你喜欢
  • 2015-05-02
  • 1970-01-01
  • 2011-05-14
  • 1970-01-01
  • 1970-01-01
  • 2020-06-15
  • 2017-07-23
  • 2012-09-03
  • 2016-08-27
相关资源
最近更新 更多