Advertisement

03.01.2004 at 09:00AM PST, ID: 20902853
[x]
Attachment Details

Column formatting in SQL-plus

Asked by bjornsone in Oracle Database

Tags: column, width

When I do a basic query in SQL plus with a column of type VARCHAR2(100),
it reserves a width of 100 characters for displaying the results in.  All of my
queries that include such columns have wrapped around text that is difficult to read.
I'm now using 8.1.6, but I remember when I used an older version, it would automatically
choose column widths for the display that corresponded to the maximum length
of the strings being displayed in the column.  I know I can make a report, but that is
complicated.  In the old version I could just do "select firstName, lastName from MyUsers" and
it would look good since no user had an extremely long name.
I'm hoping there is just some simple setting for SQL-plus that will let me have it
look the way it did in the older version.Start Free Trial
[+][-]03.01.2004 at 09:05AM PST, ID: 10487795

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Oracle Database
Tags: column, width
Sign Up Now!
Solution Provided By: andrewst
Participating Experts: 3
Solution Grade: A
 
 
[+][-]03.01.2004 at 09:12AM PST, ID: 10487865

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]03.01.2004 at 09:38AM PST, ID: 10488135

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]03.01.2004 at 09:42AM PST, ID: 10488173

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03.01.2004 at 09:45AM PST, ID: 10488198

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03.01.2004 at 02:06PM PST, ID: 10490309

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32