简体   繁体   English

PLS-00103:遇到符号“文件结束”

[英]PLS-00103: Encountered the symbol “end-of-file”

I'm running the following SQL block: 我正在运行以下SQL块:

BEGIN 
  EXECUTE IMMEDIATE 'CREATE TABLE table_name (id INT NOT NULL)';
END;

And getting: 得到:

PLS-00103: Encountered the symbol "end-of-file" when expecting one of the following:

   ( begin case declare end exception exit for goto if loop mod...

I'm confused because this runs fine in Oracle SQL Developer, but when I execute it with the Oracle JDBC driver, it throws this error. 我很困惑,因为它在Oracle SQL Developer中运行良好,但是当我使用Oracle JDBC驱动程序执行它时,会引发此错误。

The problem turned out to be the way that the Oracle driver was parsing the SQL string. 原来问题出在Oracle驱动程序解析SQL字符串的方式。 Taking out the newlines fixed it. 取出换行符将其修复。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 PLS-00103:在FlyWay中遇到符号“文件结尾” - PLS-00103: Encountered the symbol “end-of-file” in FlyWay ORA-06550 第 2 行,第 44 列:PLS-00103: 遇到符号“文件结束” - ORA-06550 line 2, column 44:PLS-00103: Encountered the symbol "end-of-file" PLS-00103:预期以下情况之一时遇到符号“ TEST_PKG”: - PLS-00103: Encountered the symbol “TEST_PKG” when expecting one of the following: ; 错误:PLS-00103:在预期以下情况之一时遇到符号“ AS”:返回 - Error: PLS-00103: Encountered the symbol “AS” when expecting one of the following:return BufferedReader 中的 GZIPInputStream 文件结尾序列 - GZIPInputStream end-of-file sequence in BufferedReader 如何读取二进制文件直到文件结束? - How to read binary file until the end-of-file? 合并文件给出错误:文件结束,预期行 - merge files gives error: End-of-File, expected line 在 Eclipse 下运行时,BufferedReader 在 StdIn 上看不到文件结尾 - BufferedReader not seeing end-of-file on StdIn when run under Eclipse 使用 Java 的 Scanner 类确定文件结尾 - Determine end-of-file using Java's Scanner class java.io.IOException:错误:文件结束,预期行 PDFBox 问题 - java.io.IOException: Error: End-of-File, expected line Issue with PDFBox
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM