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!

Can I make SQL*Plus output more readable like this ?

York35Aug 13 2012 — edited Aug 13 2012
Version : 11.2

Can I make sql results more readbale like below using SqlPlus ? ie. enclosing result columns neatly in a table like structure.
+------------+------------+
| department | Avg Salary |
+------------+------------+
| Finance    | 63863.2479 |
| Hardware   | 66308.3700 |
| HR         | 66402.6549 |
| QA         | 66012.7119 |
| Software   | 61928.2700 |
| Switch     | 66413.2231 |
+------------+------------+
I think this is from MySQL or Postgress (the below doesn't anything about that)
http://guylichtman.com/db-spring06/hw1_solution_sql.txt



If not possible using SQL*Plus , can this be done using some other tools like PL/SQL developer (which we have) ?

Not a business case . I just want to send some SQL training stuff to my friend.
Moreover , during posting in OTN, it would be better to post some sample data , so that volunteer gurus can quickly understand what they are looking at.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 10 2012
Added on Aug 13 2012
3 comments
472 views