create or replace procedure test(Name in varchar2) is
begin
dbms_output.put_line('dsfdf');
if Name= '111' then
dbms_output.put_line('111');
else if Name= '222' then
dbms_output.put_line('222');
end if;
end test;
出错如下
Compilation errors for PROCEDURE IFSAPP.TESTError: PLS-00103: 出现符号test;在需要下列时:if
if
Line: 9
Text: end test;去掉else if Name= '222' then,就OK
begin
dbms_output.put_line('dsfdf');
if Name= '111' then
dbms_output.put_line('111');
else if Name= '222' then
dbms_output.put_line('222');
end if;
end test;
出错如下
Compilation errors for PROCEDURE IFSAPP.TESTError: PLS-00103: 出现符号test;在需要下列时:if
if
Line: 9
Text: end test;去掉else if Name= '222' then,就OK
解决方案 »
- 请问怎么比较2个字符串是否相等
- 无法对所有EM相关账户解锁
- 关于toad怎么查看 一句插入执行的情况
- 【求指教】PL/SQL 里边的sql语句不能执行。不明原因
- 取出一个表中记录把这些记录一条条插到另一个同结构库同名表,用数据管道导入时出现错误怎么办?
- 熟悉sql navigator工具的大侠请进!
- oracle牛牛们救命啊!
- 如何从两个文件的数据组合在一起倒到一个表中?
- 我写了一种判断表是否存在的语句,不知道大家有没有更好的
- 请教ORACLE高手一个问题
- PROC中动态SQL能否使用EXEC SQL EXECUTE szTemp INTO :v1,:v2 USING :vIn1;
- 要做数据统计方面的东西
THEN
ELSIF
ELSE
END
IF;
是elsif阿~~~~
elsif .. then
elsif .. then
else
end if;
if...then
elsif...then
else
end if