SQL> edit
已写入 file afiedt.buf
1 declare
2 v_bool boolean;
3 begin
4 if v_bool is null Then
5 dbms_output.put_line('null');
PLS-00103: 出现符号 ";"在需要下列之一时:
if
SQL> edit
已写入 file afiedt.buf
1 declare
2 v_bool boolean:=true;
3 begin
4 if v_bool is null Then
10 end if;
11* end;
SQL> / elseif 源自_bool Then *
第 6 行出现错误:
ORA-06550: 第 6 行, 第 11 列:
PLS-00103: 出现符号 "V_BOOL"在需要下列之一时:
:= . ( @ % ;
6 elseif v_bool Then
7 dbms_output.put_line(v_bool);
8 else
9 dbms_output.put_line(v_bool);
10 end if;
11* end;
SQL> /
:= . ( @ % ;
ORA-06550: 第 12 行, 第 3 列:
PLS-00103: 出现符号 "end-of-file"在需要下列之一时:
; <an identifier>
<a double-quoted delimited-identifier>
符号 ";" 被替换为 "end-of-file" 后继续。
12* end;
SQL> /
elseif v_bool Then
*
第 6 行出现错误:
ORA-06550: 第 6 行, 第 11 列:
PLS-00103: 出现符号 "V_BOOL"在需要下列之一时:
:= . ( @ % ;
SQL> edit
7 dbms_output.put_line(1);
8 else
9 dbms_output.put_line(2);
*
第 6 行出现错误:
ORA-06550: 第 6 行, 第 11 列:
PLS-00103: 出现符号 "V_BOOL"在需要下列之一时:
:= . ( @ % ;
ORA-06550: 第 11 行, 第 4 列:
PLS-00103: 出现符号 ";"在需要下列之一时:
SQL> /
elseif v_bool Then
*
第 6 行出现错误:
ORA-06550: 第 6 行, 第 11 列:
PLS-00103: 出现符号 "V_BOOL"在需要下列之一时:
:= . ( @ % ;
ORA-06550: 第 11 行, 第 4 列:
已写入 file afiedt.buf
1 declare
2 v_bool boolean;
3 begin
4 if v_bool is null Then
5 dbms_output.put_line('null');
6 elseif v_bool=true Then
PLS-00103: 出现符号 ";"在需要下列之一时:
if
SQL> edit
已写入 file afiedt.buf
1 declare
2 v_bool boolean;
3 begin
4 if v_bool is null Then
5 dbms_output.put_line('null');
elseif v_bool=true Then
*
第 6 行出现错误:
ORA-06550: 第 6 行, 第 11 列:
PLS-00103: 出现符号 "V_BOOL"在需要下列之一时:
:= . ( @ % ;
ORA-06550: 第 11 行, 第 4 列:
ORA-06550: 第 11 行, 第 4 列:
PLS-00103: 出现符号 ";"在需要下列之一时:
if
SQL> edit
已写入 file afiedt.buf
1 declare
2 v_bool boolean:=true;
3 begin
4 if v_bool is null Then
5 dbms_output.put_line('null');
6 elseif v_bool Then
7 dbms_output.put_line(1);
8 end if;
9* end;
SQL> /
elseif v_bool Then
5 dbms_output.put_line('null');
6 elseif v_bool Then
7 dbms_output.put_line(1);
8 else
9 dbms_output.put_line(2);
6 end if;
7* end;
8 /
PL/SQL 过程已成功完成。
SQL> edit
已写入 file afiedt.buf
1 declare
2 v_bool boolean;
3 begin
4 if v_bool is null Then
ORA-06550: 第 11 行, 第 3 列:
PLS-00103: 出现符号 "end-of-file"在需要下列之一时:
if
SQL> edit
已写入 file afiedt.buf
1 declare
2 v_bool boolean;
3 begin
6 elseif v_bool Then
7 dbms_output.put_line(1);
8 else
9 dbms_output.put_line(2);
10 end if;
11* end;
SQL> /
elseif v_bool Then
*
第 6 行出现错误:
ORA-06550: 第 6 行, 第 11 列:
PLS-00103: 出现符号 "V_BOOL"在需要下列之一时:
:= . ( @ % ;
ORA-06550: 第 9 行, 第 4 列:
PLS-00103: 出现符号 ";"在需要下列之一时:
elseif v_bool Then
*
第 6 行出现错误:
ORA-06550: 第 6 行, 第 11 列:
PLS-00103: 出现符号 "V_BOOL"在需要下列之一时:
:= . ( @ % ;
ORA-06550: 第 11 行, 第 4 列:
PLS-00103: 出现符号 ";"在需要下列之一时:
10 end if;
11* end
SQL> /
elseif v_bool Then
*
第 6 行出现错误:
ORA-06550: 第 6 行, 第 11 列:
PLS-00103: 出现符号 "V_BOOL"在需要下列之一时:
:= . ( @ % ;
6 elseif v_bool Then
7 dbms_output.put_line(1);
8 else
9 dbms_output.put_line(2);
10 end if;
11 end if;
6 elseif v_bool Then
7 dbms_output.put_line(1);
8 else
9 dbms_output.put_line(2);
10 end if;
11* end;
SQL> /
elseif v_bool Then
6 elseif v_bool=true Then
7 dbms_output.put_line(1);
8 else
9 dbms_output.put_line(2);
10 end if;
11* end;
SQL> /
5 dbms_output.put_line('null');
6 elseif v_bool Then
7 dbms_output.put_line(1);
8 else
9 dbms_output.put_line(2);
10 end if;
11 end if;
12* end
SQL> /
elseif v_bool Then
*
第 6 行出现错误:
ORA-06550: 第 6 行, 第 11 列:
PLS-00103: 出现符号 "V_BOOL"在需要下列之一时: