What is the smallest PL/SQL Block?
Reveal answer
Fill a bubble to check yourself
What is the smallest PL/SQL Block?
Begin Dbms_output.put_line('Heello World'); exception when others then Dbms_output.put_line('error'); end; /
Begin null; End;
Declare a varchar2(100) := 'Hello World'; Begin Dbms_output.put_line(a); exception when others then Dbms_output.put_line('error'); end; /
begin Dbms_output.put_line('Heello World'); end; /
The smallest valid PL/SQL anonymous block must contain a BEGIN and END clause; the body can be a single null statement. The block BEGIN NULL; END; meets this requirement and compiles, making it the correct minimal example. The stored answer correctly identifies this option.