Sql PLS-00103:遇到符号“;“文件结束”;当预期出现以下情况之一时:
我正在运行下面的脚本-Sql PLS-00103:遇到符号“;“文件结束”;当预期出现以下情况之一时:,sql,oracle,Sql,Oracle,我正在运行下面的脚本- DECLARE new_vendor_id vendors5.vendor_id%TYPE; new_invoice_id invoices5.invoice_id%TYPE; current_date DATE := SYSDATE; due_date DATE := SYSDATE+30; iterator NUMBER := 1 ; 输出: Error report - OR
DECLARE
new_vendor_id vendors5.vendor_id%TYPE;
new_invoice_id invoices5.invoice_id%TYPE;
current_date DATE := SYSDATE;
due_date DATE := SYSDATE+30;
iterator NUMBER := 1 ;
输出:
Error report -
ORA-06550: line 6, column 34:
PLS-00103: Encountered the symbol "end-of-file" when expecting one of the following:
begin function pragma procedure subtype type <an identifier>
<a double-quoted delimited-identifier> current cursor delete
exists prior
06550. 00000 - "line %s, column %s:\n%s"
*Cause: Usually a PL/SQL compilation error.
*Action:
错误报告-
ORA-06550:第6行第34列:
PLS-00103:在预期以下情况时遇到符号“文件结束”:
begin函数pragma过程子类型类型
当前光标删除
先于
655000000-“行%s,列%s:\n%s”
*原因:通常是PL/SQL编译错误。
*行动:
请告诉我我做错了什么。我试图更改为数字(1),但它有相同的错误。如果这是整个脚本,那么它应该抛出一个错误。每个块至少需要包含三个元素
BEGIN -- Execution start
NULL; -- A statement (even if it doesn't do anything)
END; -- Ends and executes the block.
/
可选的
DECLARE
部分将位于BEGIN
上方,但它不能单独存在。完成对块的编码后,此特定错误将得到解决。为清楚起见,您应该真正使用可用的格式化工具。例如:将代码高亮显示为代码,并将每个语句隔开,这将非常有帮助。