您的位置:首页 > 博客中心 > 数据库 >

打印Oracle的SQL

时间:2022-03-14 16:29

create or replace procedure put_line_unlimit(p_string in varchar2)
is
StrTemp long default p_string;
begin
loop
if instr(StrTemp,chr(13))=0 then
dbms_output.put_line(substr(StrTemp,1,200));
exit;
else
dbms_output.put_line(substr(StrTemp,1,instr(StrTemp,chr(13))-1));
StrTemp := substr(StrTemp,instr(StrTemp,chr(13))+1,length(StrTemp)-instr(StrTemp,chr(13)));
end if;
end loop;
end;

 

热门排行

今日推荐

热门手游