次のような PL/SQL ブロックがあります。
declare
L_Count number := 10;
begin
if L_Count > 0then
dbms_output.put_line('l_Count > 0');
else
dbms_output.put_line('l_Count <= 0');
end if;
exception
when others then
dbms_output.put_line('exception occurred');
end;
0then
の代わりに を含む 4 行目に注意してください0 then
。
PL/SQL-Developer を使用して、このブロックを SQL ステートメントとして実行し、実際に を出力できますl_Count > 0
。「プログラム ウィンドウ」を使用してこれをコンパイルすると、PL/SQL 開発者は次のエラーを表示します。
Unable to perform operation due to errors in source code
このステートメントはどのように実行できますが、コンパイルはできませんか?
ヒントをありがとう!