fork download
  1. set serveroutput on;
  2. declare a varchar(20);
  3. begin
  4. a:='Hello';
  5. dbms_output.put_line(a);
  6. end;
  7. /
Success #stdin #stdout #stderr 0.01s 5360KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
Error: near line 1: near "set": syntax error
Error: near line 2: near "declare": syntax error
Error: near line 3: near "a": syntax error
Error: near line 5: near "dbms_output": syntax error
Error: near line 6: cannot commit - no transaction is active