I'm trying PL/SQL on online Oracle SQL Worksheet - Live Oracle SQL.
I'm unable to display the output of the block, in spite of adding SET SERVEROUTPUT ON;
This is my code
SET SERVEROUTPUT ON;
declare
i number:=2;
j number:=0;
counter number:=0;
flag number;
begin
loop
if (i=2) then
counter:=counter+1;
dbms_output.put(i ||' ');
else
j:=2;
flag:=0;
loop
if(mod(i, j)=0) then
flag:=1;
end if;
exit when (i=j) or flag=1;
end loop;
if(flag=0) then
counter:=counter+1;
dbms_output.put(j ||' ');
end if;
end if;
i:=i+1;
exit when counter=10;
end loop;
end;
/
This is the console message
Unsupported Command
Statement processed.
Any idea how to get it working?