我在我的数据库表中插入一个新对象,但我继续检索一个异常状态......
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
这些点都是可选的,所以并不需要。