问题标签 [sys-refcursor]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
c# - nPLS-00306:调用中的参数数量或类型错误
如果问题被重复,请原谅。我的解决方案中有两个项目,一个控制台应用程序和一个 MVC4 网站。我正在使用 Oracle 管理的驱动程序来访问 oracle 数据库 11g。我正在尝试从以下存储过程中检索数据:
在我的控制台应用程序中创建实体和其他内容后,我通过以下方式获取数据:
我在我的网站中添加了此控制台应用程序的引用,但是当我在控制器中调用上述方法时,它给出了异常:
在上下文类的下一行
有什么我想念的吗?
sql - 函数中的 Oracle Sys Refcurser
我在返回指向查询的指针时遇到了一些麻烦。
这是我当前的代码:
我在第一行得到一个语法错误,上面写着“Expected AUTHID,EXTERNAL”但是我也不确定我编写的代码是否也能正确执行。任何提示或提示将不胜感激。
oracle - How to call a Stored procedure with aggregate result in output?
I have a simple select query that needs to be put into a stored procedure. The query takes in 3 parameters and displays 2 columns as result, one of them being an aggregate.
I executed the stored procedure and it got compiled, with no issues. How do i check if its working properly? As in how do I test it now?
The statement I used to test the above procedure can be found below:
This was the error I got:
oracle - SYS_REFCURSOR 自动更改为 REF CURSOR 并在 oracle PL/SQL 中出错
我在带有原型的包中有一个程序:
在包正文中,我的定义是:
当我运行它时,我进入调试屏幕:
它给出了错误 PLS-00201: identifier 'CURSOR' must be declared
为什么光标类型更改为REF CURSOR
即使我将其声明为SYS_REFCURSOR
?
c# - ORA-06550 第 10 行,第 41 列:PLS-00103:在预期以下情况之一时遇到符号“,”:
我正在从 C# 执行一个匿名 PL/SQL 块,但出现如下错误:
ORA-06550 第 10 行,第 41 列:PLS-00103:在预期以下情况之一时遇到符号“,”:
我的代码:
命令执行时出现错误'cmd.ExecuteNonQuery();'
我想我在匿名块中遗漏了一些东西。
oracle - 在 Oracle 中向 SYS_REFCURSOR 添加一列
我有一个返回 SYS_REFCURSOR 的过程 MY_PROC。我的新要求是创建一个新过程,该过程返回 SYS_REFCURSOR 以及 MY_RPOC 返回的所有数据以及一个带有新数据的额外列。我想重用过程 MY_PROC。
Oracle 中有没有办法向 SYS_REFCURSOR 添加一列?或者你知道如何解决这个问题吗?
谢谢您的帮助。
oracle - Unable to use Joins in Sys RefCursor in Oracle
I want to pass sys_refcursor as an argument to a procedure in PL/SQL. I have used the following codes to create a procedure
and i have called the same procedure i an anonymous block
When I execute my anonymous block, I get an error
Note that the institution
table has 5 columns.
oracle - 从 oracle 数据库中的表加载网格视图的响应时间长
我正在使用 .Net 4.5 Framework 开发 Web 应用程序。我正在从 oracle 数据库中的表中填充网格视图。该表很大,有近 73,000 条记录,每条记录有 5 列。加载表的响应时间约为 4 分钟。我目前正在使用 ADO.Net 的连接架构方法进行填充。我想要一种减少响应时间的方法。
检索代码
存储过程:
oracle - 如何在 Oracle 中使用子查询?
我有下表:
我想要做的是匹配 ID 并表示如下:
我使用了以下代码,但没有得到结果。
我做错了什么?
oracle - Why do I get the PLS-00306: wrong number or types of arguments error when calling a Package PROC?
Here is the top part of my Package Body method:
This runs fine when I execute from the PL/SQL execute dialogue. I need to be able to run this from an SQL Query window though and join to other tables and what not to develop.
I'm trying to execute this sql from the Sql Window:
And I get this error:
I count 5 incoming (including one IN OUT cursor). In my call I pass 5 including the cursor. How can I get the results of the cursor to the output vars window.