Oracle中可能导致以下错误的可能原因是什么?

问题描述 投票:0回答:1
PLS-00103: Encountered the symbol " " when expecting one of the following:

       ( begin case declare exit for goto if loop mod null pragma
       raise return select update while with <an identifier>
       <a double-quoted delimited-identifier> <a bind variable> <<
       continue close current delete fetch lock insert open rollback
       savepoint set sql execute commit forall merge pipe purge
    06550. 00000 -  "line %s, column %s:\n%s"
    *Cause:    Usually a PL/SQL compilation error.

我正在使用游标。由于版权原因,无法共享代码。

oracle plsql
1个回答
0
投票

如果你不能共享代码,至少写一个抛出相同错误的匿名版本。有时,当您尝试复制问题时,您会发现原因是什么。 PLS-00103通常是硬语法错误,因此您可能需要检查您的代码是否遵循基本的语法规则https://en.wikipedia.org/wiki/PL/SQL。此外,“”有点奇怪,因为oracle并不关心代码中的缩进。您还可能想要检查您的代码是否包含非ASCII whitespces - 例如在notepad ++中使用view-> show_symbols->所有符号并查找没有用点或箭头标记的空格。

© www.soinside.com 2019 - 2024. All rights reserved.