oracle 错误(7,1):PLS-00103:遇到符号“BEGIN”
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/25426827/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-19 02:28:59 来源:igfitidea点击:
Error(7,1): PLS-00103: Encountered the symbol "BEGIN"
提问by stephanie
I am a new PL/SQL user. I tried to create a procedure and run it like:
我是一个新的 PL/SQL 用户。我尝试创建一个程序并运行它,如下所示:
create or replace procedure addp1(i in number) is
begin
insert into t3 values (i,'xxxx');
end addp1;
begin
addp1(99);
end;
but i got error: Error(7,1): PLS-00103: Encountered the symbol "BEGIN"
in my log file. Can anyone help me fix this problem.
Thanks
但我进入error: Error(7,1): PLS-00103: Encountered the symbol "BEGIN"
了我的日志文件。谁能帮我解决这个问题。谢谢
回答by Maheswaran Ravisankar
create or replace procedure addp1(i in number)
is
begin
insert into t3 values (i,'xxxx');
end addp1;
/* We have to actually push the block to the engine by issuing a '/' */
/
begin
addp1(99);
end;
/* Every PL/SQL Block needs this! */
/