for easy feedback:
set serveroutput on format wrapped;
start
DBMS_OUTPUT.put_line('easy remark');
finish;
/
-- do one thing
start
DBMS_OUTPUT.put_line('second easy remark');
finish;
/
it’s best to get:
nameless block accomplished
easy remark
nameless block accomplished
second easy remark
if you wish to print out the outcomes of variables, right here’s one other instance:
set serveroutput on format wrapped;
declare
a_comment VARCHAR2(200) :='first remark';
start
DBMS_OUTPUT.put_line(a_comment);
finish;
/
-- do one thing
declare
a_comment VARCHAR2(200) :='remark';
start
DBMS_OUTPUT.put_line(a_comment || 2);
finish;
your output must be:
nameless block accomplished
first remark
nameless block accomplished
comment2