將打印到output的過長一行句子,自動截斷成幾行,用來打印本地報表: from http://hgworkhouse.org PL/SQL 報表打印 Oracle Procedure my_output(p_text in varchar2) is p_sum_length number := 0; p_length number := 200; p_index number := 1; p_time numb
將打印到output的過長一行句子,自動截斷成幾行,用來打印本地報表: from http://hgworkhouse.org PL/SQL 報表打印 Oracle $velocityCount-->Procedure my_output(p_text in varchar2) is p_sum_length number := 0; p_length number := 200; p_index number := 1; p_time number := 0; begin select length(p_text) into p_sum_length from dual; p_time := ceil(p_sum_length / p_length); for i in 1 .. p_time loop dbms_output.put_line(substr(p_text, p_index, p_length)); p_index := p_index + p_length; end loop; end my_output;
聲明:本網頁內容旨在傳播知識,若有侵權等問題請及時與本網聯系,我們將在第一時間刪除處理。TEL:177 7030 7066 E-MAIL:11247931@qq.com