Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在练习 pl/sql 程序。我有一个程序,即:示例:
begin for i in 1..10 loop dbms_output.put_line(i); end loop; end;
输出是这样的:
1 2 3 . . . 10
但是我必须在一行中打印所有数字,即(123.....10)我怎么能存档呢,我会得到这样的输出:123...10
123.....10
123...10
使用DBMS_OUTPUT.put:
DBMS_OUTPUT.put
SQL> begin 2 for i in 1..10 loop 3 dbms_output.put(i); 4 end loop; 5 dbms_output.new_line; 6 end; 7 / 12345678910 PL/SQL procedure successfully completed.
使用 .put(i) 而不是 put_line