Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Oracle / SQL Plus and Format

Status
Not open for further replies.

saw15

Technical User
Jan 24, 2001
468
US
I am trying writing a text file and selecting one field that is defined as number(4,0) in the Oracle DB. I am formatting the column: column format a5 and then selecting the column in the select statement. Linesize was set to 220 for the other 21 fields and bells (20) and cr/lf (2) for a total of 242.

Problem is that this new column contains null values, and for somereason, has a min value of 39 characters in it. Linesize has to be adjusted to 261 to write to a file without truncating.

Any help or assistance is much appreciated.
 
Since you're pulling up a number, you might try formatting the column as a number:

COL my_number_column FORMAT 99999
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top