当前位置:首页 > oracle代码库 > 基础 > 控制台输出语句

控制台输出语句

点击次数:1137  更新日期:2018-09-28

首先执行语句

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;