Format columns [message #376379] |
Wed, 17 December 2008 03:14 |
abcxyz
Messages: 2 Registered: December 2008
|
Junior Member |
|
|
Hi,
Am using pl/sql spool to export data from oracle table to textfile. but the data in the textfile appers like this.
this consists of 1 row only. i need to limit each column width. Anyone please help..
A_CODE B_CODE P_KEY TRADE_NAME UNIT_OF_MEASURE SUPPLIER_NAME
---------------------------------------- ---------------------------------------- ---------- -------------------------------------------------------------------------------------------------------------- -------------------- ------------------------------------------------------------
ABC 599900000 46 REPAIR CHARGES FOR SPC-8000© ###adc
Thanks in advance.
|
|
|
|
|
Re: Format columns [message #376384 is a reply to message #376382] |
Wed, 17 December 2008 03:22 |
Frank Naude
Messages: 4587 Registered: April 1998
|
Senior Member |
|
|
You can play around with SET and COLUMN commands. Some examples:
SQL> set linesize 132
SQL> set trimspool on
SQL> col A_CODE format A3
Etc.
|
|
|
|