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!

Align / format cursor output rows in email with header record

antobayApr 12 2017 — edited Apr 13 2017

help needed please.

I am writing directly to email in pl/sql via UTL_SMTP. The problem is that rows are not aligned or left adjusted with the header record using LPAD/RPAD. This is my code just showing how the header and are padded

v_heading := rpad('Surname',20,'.')||rpad('Forename',15)|||chr(13);

loop

.

 v\_deatail   :=  rpad(v\_surname,20,'.')||rpad(v\_forename,15,'.')||chr(13)||chr(13)|| 

.

end loop

This is the output I get

pastedImage_10.png

But I want to align the header and the detail like this

Surname Forename

Bao Keren

I am not sure if this is to do with fonts on the email but any help will be appreciated.

Thanks

This post has been answered by Marwim on Apr 12 2017
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 10 2017
Added on Apr 12 2017
3 comments
722 views