Hi i want my formatted output should be in a straight line : 1 2 3 4 5 6. Is this possible in PL/SQL ?

declare
n number:=0;
begin
loop
n:=n+1;
dbms_output.put_line( n );
exit when n>=6;
end loop;
end;
/

Output :

1
2
3
4
5
6

PL/SQL procedure successfully completed.

Thanx in advance.

try this sample code

declare
str varchar2(100);
begin
for i in 1..10
loop
str:=str||' '||i;
end loop;
dbms_output.put_line( str );
end;
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.