【发布时间】:2020-10-23 16:20:06
【问题描述】:
我有一个未编译的 PL/SQL 过程。错误是:
-
Error(3,7): PLS-00103: Encountered the symbol "INTO" 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 The symbol "INTO" was ignored. -
Error(8,1): PLS-00428: an INTO clause is expected in this SELECT statement.
我的代码:
CREATE OR REPLACE PROCEDURE findvisitsandlaborcosts
as
begin
select * from SI.customer;
end;
/
我搜索了一个在线语法检查器,它在第一行显示有错误。但是哪里?!?这似乎是正确的。我已经搜索了声明过程的语法,并且我已经交叉检查了很多次。这一定是我忽略的一些简单的事情......
【问题讨论】:
-
您需要将结果保存在某处。存储过程不能只运行查询。结果无处可放。
-
您从哪里得到PLS-00103:遇到符号“INTO”?我没有看到任何
into关键字。