ORA-00900:无效的SQL语句 - 在oracle 10g中运行过程时 [英] ORA-00900: invalid SQL statement- when run a procedure in oracle 10g

查看:285
本文介绍了ORA-00900:无效的SQL语句 - 在oracle 10g中运行过程时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Oracle 10g数据库并尝试使用SQL命令运行程序。

I am using Oracle 10g database and trying to run a procedure using SQL commands.

create or replace procedure "exam" is
begin
  DBMS_OUTPUT.PUT_LINE('Test');
end;

然后点击运行按钮。它显示:程序已创建。

Then click on Run button. It shows: "procedure created".

当我尝试使用以下命令执行它时:

When I try to execute it using:

execute exam;

然后点击运行按钮,显示:

then click on Run button, it shows:

ORA-00900: invalid SQL statement

谢谢你的帮助。

推荐答案

刚刚注意到你问题中的一个细节。按运行按钮。因此,您必须使用IDE。

Just noticed a detail in your question. You press run button. Thus, you must be using an IDE.

您不能在IDE中使用执行 - 它是 sql * plus 命令。它可能在Oracle SQL Developer中工作,但我不会在那里使用它;

You cannot use execute in IDEs - it is an sql*plus command. It might work in Oracle SQL Developer though, but I wouldn't use it there anyway;

尝试

begin
  exam;
end;

这篇关于ORA-00900:无效的SQL语句 - 在oracle 10g中运行过程时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆