Oracle ADO.Net 异常

发布于 2024-09-27 14:22:03 字数 727 浏览 5 评论 0原文

当我尝试执行以下 sql 块时,出现以下异常

ORA-06550: line 1, column 6:
PLS-00103: Encountered the symbol "" 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> <<
   close current delete fetch lock insert open rollback
   savepoint set sql execute commit forall merge pipe
The symbol "" was ignored.
ORA-06550: line 2, column 47:
PLS-00103: Encountered the symbol "" when expecting one of t

查询:

begin
insert into test (a, b) values (:p1, :p2);
commit;
end;

注意:我添加了两个带有字符串值的参数 (p1, p2)

When I'm trying to execute the following sql block, I got the following Exception

ORA-06550: line 1, column 6:
PLS-00103: Encountered the symbol "" 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> <<
   close current delete fetch lock insert open rollback
   savepoint set sql execute commit forall merge pipe
The symbol "" was ignored.
ORA-06550: line 2, column 47:
PLS-00103: Encountered the symbol "" when expecting one of t

The query:

begin
insert into test (a, b) values (:p1, :p2);
commit;
end;

Note: I added two parameters (p1, p2) with string values

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

墨落画卷 2024-10-04 14:22:03

删除尾随的;

Remove the trailing ;

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文