Unix Technical Forum

Column formatting Problem

This is a discussion on Column formatting Problem within the Oracle Miscellaneous forums, part of the Oracle Database category; --> I am facing a Problem here.. For example , The Value of empl_status in job table is one character ...


Go Back   Unix Technical Forum > Database Server Software > Oracle Database > Oracle Miscellaneous

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-08-2008, 11:55 AM
koorisatheesh@gmail.com
 
Posts: n/a
Default Column formatting Problem

I am facing a Problem here..

For example , The Value of empl_status in job table is one character (
Active - A, teminated - T )

Here comes the problem....when I run the same SQL in Oracle .. i am
getting

emplid e
==================
xxxxxxx A

Here , for the Empl_status , I am getting only the E as heading..What I
need is to display the Column empl_status without truncating.......

There is command called Set linesize .. But this doesnot help in this..
It will only display all columns in single line and nothinig to do
with column width..

Also, we have a command column <col_name> format... this is very
specific..

do we have anything to do with settings and make it as generic ? so
that the column names are not truncated.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-08-2008, 11:55 AM
Michel Cadot
 
Posts: n/a
Default Re: Column formatting Problem


<koorisatheesh@gmail.com> a écrit dans le message de news: 1165469455.269495.147280@n67g2000cwd.googlegroups. com...
|I am facing a Problem here..
|
| For example , The Value of empl_status in job table is one character (
| Active - A, teminated - T )
|
| Here comes the problem....when I run the same SQL in Oracle .. i am
| getting
|
| emplid e
| ==================
| xxxxxxx A
|
| Here , for the Empl_status , I am getting only the E as heading..What I
| need is to display the Column empl_status without truncating.......
|
| There is command called Set linesize .. But this doesnot help in this..
| It will only display all columns in single line and nothinig to do
| with column width..
|
| Also, we have a command column <col_name> format... this is very
| specific..
|
| do we have anything to do with settings and make it as generic ? so
| that the column names are not truncated.
|

No.

Regards
Michel Cadot


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-08-2008, 11:56 AM
Michael Austin
 
Posts: n/a
Default Re: Column formatting Problem

Michel Cadot wrote:

> <koorisatheesh@gmail.com> a écrit dans le message de news: 1165469455.269495.147280@n67g2000cwd.googlegroups. com...
> |I am facing a Problem here..
> |
> | For example , The Value of empl_status in job table is one character (
> | Active - A, teminated - T )
> |
> | Here comes the problem....when I run the same SQL in Oracle .. i am
> | getting
> |
> | emplid e
> | ==================
> | xxxxxxx A
> |
> | Here , for the Empl_status , I am getting only the E as heading..What I
> | need is to display the Column empl_status without truncating.......
> |
> | There is command called Set linesize .. But this doesnot help in this..
> | It will only display all columns in single line and nothinig to do
> | with column width..
> |
> | Also, we have a command column <col_name> format... this is very
> | specific..
> |
> | do we have anything to do with settings and make it as generic ? so
> | that the column names are not truncated.
> |
>
> No.
>
> Regards
> Michel Cadot
>
>


While techically correct you can try:

select emplid, cast(empl_status as char(12)) from ....

or

COLUMN empl_status FORMAT A12
select emplid,empl_status from .... ;

depending on how you are intending on using the SQL output.

--
Michael Austin.
Database Consultant
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 06:19 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com