[英]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.