这让我有点生气.我试图将一个变量添加到一个过程,但它没有工作 - 我刚收到此错误消息:
[错误]语法检查(25:7):ERROR第25行,第7列,结束_行25,结束_col 12,找到'号码',期望:; - 或 - ..:= DEFAULT NOT NULL - 或 - % - 或 - (.@
我在下面敲了一个非常基本的程序来解决这个问题,现在我完全陷入了困境,因为我看起来像是在做我所做的事情.为什么我不能声明如下所示的变量?我通常在SQL Server中编码,如果这是我的问题的任何线索.非常感谢有人可以提供帮助!
CREATE OR REPLACE PROCEDURE MRCS.pro_xxx_test1 (cats out sys_refcursor)
IS
declare
spoon number;
balls varchar2(3);
BEGIN
open cats for select * from dual;
end;
/
Run Code Online (Sandbox Code Playgroud)
WBA*_*BAR 11
CREATE OR REPLACE PROCEDURE MRCS.pro_xxx_test1 (cats out sys_refcursor)
IS
spoon number;
balls varchar2(3);
BEGIN
open cats for select * from dual;
end;
/
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
70698 次 |
| 最近记录: |