我将在我的数据库表中的新对象,但我一直在检索,指出一个例外....
PL/SQL异常翻译
ERROR:insertproperty:ORA-06553: PLS-103: Encountered the symbol "EXCEPTION" when expecting one of the following:
begin case declare exit for function goto if loop mod null
package pragma procedure raise return select separate type
update while with <an identifier>
<a double-quoted delimited-identifier> <a bind variable> <<
form table call close current define delete fetch lock insert
open rollback savepoint set sql execute commit forall merge
ORA-06553: PLS-103: Encountered the symbol "EXCEPTION" when expec
但所有我做的是一个简单的插入到...
function insert(...)
begin
begin
select table_seq.nextval
into nextval
from dual
begin
insert into table(id, ....)
values(nextval,....)
end
end
end
点都是可选的,所以不是真的需要。
错误消息提到'EXCEPTION',你清理你的代码,删除'EXCEPTION',并可能是其周围的上下文。当您删除正在接受投诉的代码块时,我们应该如何提供帮助? –
@Shannon Severance对不起,但我真正想要的是有人向我解释例外。与代码没有任何关系,因此名称为“例外翻译” – Kevin