<legend id='GwgqA'><style id='GwgqA'><dir id='GwgqA'><q id='GwgqA'></q></dir></style></legend>

      <bdo id='GwgqA'></bdo><ul id='GwgqA'></ul>

        <i id='GwgqA'><tr id='GwgqA'><dt id='GwgqA'><q id='GwgqA'><span id='GwgqA'><b id='GwgqA'><form id='GwgqA'><ins id='GwgqA'></ins><ul id='GwgqA'></ul><sub id='GwgqA'></sub></form><legend id='GwgqA'></legend><bdo id='GwgqA'><pre id='GwgqA'><center id='GwgqA'></center></pre></bdo></b><th id='GwgqA'></th></span></q></dt></tr></i><div id='GwgqA'><tfoot id='GwgqA'></tfoot><dl id='GwgqA'><fieldset id='GwgqA'></fieldset></dl></div>

        <small id='GwgqA'></small><noframes id='GwgqA'>

      1. <tfoot id='GwgqA'></tfoot>

        在 pl/sql 过程中声明变量时出现语法错误

        syntax error when declaring variables in a pl/sql procedure(在 pl/sql 过程中声明变量时出现语法错误)
        <tfoot id='aeiIH'></tfoot>
          <tbody id='aeiIH'></tbody>

        <small id='aeiIH'></small><noframes id='aeiIH'>

        <legend id='aeiIH'><style id='aeiIH'><dir id='aeiIH'><q id='aeiIH'></q></dir></style></legend>

            • <bdo id='aeiIH'></bdo><ul id='aeiIH'></ul>

              <i id='aeiIH'><tr id='aeiIH'><dt id='aeiIH'><q id='aeiIH'><span id='aeiIH'><b id='aeiIH'><form id='aeiIH'><ins id='aeiIH'></ins><ul id='aeiIH'></ul><sub id='aeiIH'></sub></form><legend id='aeiIH'></legend><bdo id='aeiIH'><pre id='aeiIH'><center id='aeiIH'></center></pre></bdo></b><th id='aeiIH'></th></span></q></dt></tr></i><div id='aeiIH'><tfoot id='aeiIH'></tfoot><dl id='aeiIH'><fieldset id='aeiIH'></fieldset></dl></div>
                1. 本文介绍了在 pl/sql 过程中声明变量时出现语法错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  这让我有点生气.我正在尝试向过程中添加一个变量,但它不起作用 - 我刚刚收到此错误消息:

                  This is sending me a bit mad. I'm trying to add in a variable to a procedure, but it wasn't working - I just got this error message:

                  [Error] 语法检查 (25: 7): ERROR line 25, col 7,ending_line 25,Ending_col 12,找到数字",期待:;- 或 - .. := 默认NOT NULL -or- % -or- ( . @

                  [Error] Syntax check (25: 7): ERROR line 25, col 7, ending_line 25, ending_col 12, Found 'number', Expecting: ; -or- .. := DEFAULT NOT NULL -or- % -or- ( . @

                  我在下面编写了一个非常基本的程序来隔离问题,现在我完全卡住了,因为我看过的每个基本语法指南都说要做我所做的.为什么我不能声明如下所示的变量?如果这对我的问题有任何线索,我通常会在 SQL Server 中进行编码.如果有人能帮忙,非常感谢!

                  I knocked up a really basic procedure below to isolate the problem and now I'm completely stuck, as every basic syntax guide I've looked as says to do what I've done. Why can't i declare variables as shown below? I normally code in SQL Server if that's any clue as to my problem. Many thanks if anyone can help!

                  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;
                  
                  /
                  

                  推荐答案

                  删除DECLARE".在函数/过程声明中不需要

                  Remove the "DECLARE". Not needed in a function / procedure declaration

                  这篇关于在 pl/sql 过程中声明变量时出现语法错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  How to redirect the output of DBMS_OUTPUT.PUT_LINE to a file?(如何将 DBMS_OUTPUT.PUT_LINE 的输出重定向到文件?)
                  How do I get column datatype in Oracle with PL-SQL with low privileges?(如何使用低权限的 PL-SQL 在 Oracle 中获取列数据类型?)
                  Get a list of all functions and procedures in an Oracle database(获取 Oracle 数据库中所有函数和过程的列表)
                  Why cannot I create triggers on objects owned by SYS?(为什么我不能在 SYS 拥有的对象上创建触发器?)
                  Returning result even for elements in IN list that don#39;t exist in table(即使对于表中不存在的 IN 列表中的元素也返回结果)
                  Reset Sequence in oracle 11g(oracle 11g 中的重置序列)
                  <legend id='rIdRm'><style id='rIdRm'><dir id='rIdRm'><q id='rIdRm'></q></dir></style></legend>

                  <small id='rIdRm'></small><noframes id='rIdRm'>

                          <tbody id='rIdRm'></tbody>

                      1. <tfoot id='rIdRm'></tfoot>
                      2. <i id='rIdRm'><tr id='rIdRm'><dt id='rIdRm'><q id='rIdRm'><span id='rIdRm'><b id='rIdRm'><form id='rIdRm'><ins id='rIdRm'></ins><ul id='rIdRm'></ul><sub id='rIdRm'></sub></form><legend id='rIdRm'></legend><bdo id='rIdRm'><pre id='rIdRm'><center id='rIdRm'></center></pre></bdo></b><th id='rIdRm'></th></span></q></dt></tr></i><div id='rIdRm'><tfoot id='rIdRm'></tfoot><dl id='rIdRm'><fieldset id='rIdRm'></fieldset></dl></div>

                          • <bdo id='rIdRm'></bdo><ul id='rIdRm'></ul>