Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

print single line output in two lines - Possible or not ?

UvaDec 3 2014 — edited Dec 3 2014

Hi ALL,

Could you please advise me is the below approach possible or not ?

Requirement:-

I want to display the output in two rows, with passing data in single row.

Example:

select l_output1,l_output2 from dual;

Then my output should display like:

l_output1

l_output2

(Not as l_output1 l_output2)

I tried as below but it is not working,

select l_output1||chr(10)||l_output2 from dual

but still it is printing in single line. (CHR(10) for new line feed)

Thanks in advance.

Regards,

Uva

This post has been answered by John Spencer on Dec 3 2014
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 31 2014
Added on Dec 3 2014
6 comments
1,628 views