Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: sql column formatting
Raj,
Can you show us your sql statement? Also, why not use a column alias in your select and use that column alias in your format statement?
column patient_name format a37 heading 'Patient_Name'
Select TRIM(replace(PATIENT_NAME,'-',',')) patient_name
From ......
Tom
From: oracle-l-bounce_at_freelists.org
[mailto:oracle-l-bounce_at_freelists.org] On Behalf Of raja rao
Sent: Wednesday, July 19, 2006 9:11 AM
To: oracle-l_at_freelists.org
Subject: sql column formatting
Hi All,
Can some one help me in setting the column format.
I have the 2 below commands:
column TRIM(replace(PATIENT_NAME,'-',',')) format a37 heading 'Patient_Name'
column concat(to_char(ADMIT_DT,'MMDDYYYY'),ATTENDING_PHYSICIAN) format a47 heading 'Date_ofReferring_Phys_Code'
the format is working fine and i'm getting in size a37 and a47 till the weekend.
last week we did online partitioning of the table. But that was not in weekend. that was in mid of the week.
after the partitioning also we got 2 successful reports. (with correct format)
later, the format is not working for us. when we try to query also,
it is showing a65 output. the scripts are not changed.
i am confused why oracle behaves like this. (this is a 9i database on solaris)
can someone throw some light on this.
Thanks in advance,
Raj
-- http://www.freelists.org/webpage/oracle-lReceived on Wed Jul 19 2006 - 08:19:25 CDT
![]() |
![]() |