首先执行语句
set serveroutput on
然后可使用
dbms_output.put_line('123')
来输出
set serveroutput on declare c integer :=0; BEGIN select count(*) into c from sys_file where guid='437698e7-dbc1-4e3f-922a-793bababe05e'; if c=0 then dbms_output.put_line ('aaa'); else dbms_output.put_line ('bbb'); end if; END;