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!

Displaying Query results using DBMS_OUTPUT

smshindeAug 29 2007 — edited Sep 7 2007
Dear All,
I want to display the results of the query in DBMS OUTPUT.
What is the simplest way to do it?
Presently i am storing the results using SELECT ...INTO in variables and displaying it using DBMS_OUTPUT. Any simple alternatives? Can i display it in tabular format?

If the select statement is having variables, then i can i use it as a PL/SQL statement?
Or i have to use EXECUTE IMMEDIATE to do it?

-Sameer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 5 2007
Added on Aug 29 2007
10 comments
902 views