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!

How to output character strings with blank space using prompt on SQL*Plus?

Quanwen ZhaoMay 27 2019 — edited May 27 2019

Hello everyone ,

PROMPT is able to output strings on SQL*Plus, then how to output character strings with blank space using prompt on it?

Please take a look at the following example,

SQL> PROMPT [02] Another approach is creating trigger on SYS

[02] Another approach is creating trigger on SYS

SQL> PROMPT      and then checking the client_info column of v$session.

and then checking the client_info column of v$session.

My intention is asking the first word "and" on the second character strings to align up and down with "Another" on the first character strings.

Could you have a good advice? Thanks in advance!

Best Regards

Quanwen Zhao

This post has been answered by BrunoVroman on May 27 2019
Jump to Answer
Comments
Post Details
Added on May 27 2019
6 comments
4,781 views