View Full Version : How to get plain output (sqlplus)
Hi
I am trying to write my query results (sqlplus) to a file, such that records are NOT padded to a fixed length, and each row is one line in the file only.
How should I do this? if I spool, I get a report in which every record is
padded to the same column width. Also my longs (oracle 8) are wrapped, and if I increase linesize,
long, maxdata etc, i get buffer overflows.
How do I do this right ? I prefer not to use other tools than sqlplus/plsql (needs to be called from a shell script)
Thx for tips
Armin
Daniel Morgan
04-01-2005, 03:32 PM
eban wrote: Hi I am trying to write my query results (sqlplus) to a file, such that records are NOT padded to a fixed length, and each row is one line in the file only. How should I do this? if I spool, I get a report in which every record is padded to the same column width. Also my longs (oracle 8) are wrapped, and if I increase linesize, long, maxdata etc, i get buffer overflows. How do I do this right ? I prefer not to use other tools than sqlplus/plsql (needs to be called from a shell script) Thx for tips Armin
SELECT coluumn_name || ',' || column_name
FROM ....
One solution
--
Daniel A. Morgan
University of Washington
damorgan@x.washington.edu
(replace 'x' with 'u' to respond)
Oops. in one single column of course. Thanks, I was drifting off too much
Armin
In article <1112398124.385980@yasure>,
DA Morgan <damorgan@x.washington.edu> writes: SELECT coluumn_name || ',' || column_name FROM ....
MyLounge.com Site Map
Forum:
Cars,
Cell Phone,
Database,
Games,
Home Improvement,
IT,
Music,
School,
Sports,
Web Design,
Web Server,
Weight Loss
The MyLounge.com forum is intended for informational use only and should not
be relied upon and is not a substitute for any advice. The information contained
on MyLounge.com are opinions and suggestions of members and is not a representation
of the opinions of MyLounge.com. MyLounge.com does not warrant or vouch for
the accuracy, completeness or usefulness of any postings or the qualifications
of any person responding. Please consult a expert or seek the services of an
attorney in your area for more accuracy on your specific situation. Please note
that our forums also serve as mirrors to Usenet newsgroups. Many posts you see
on our forums are made by newsgroup users who may not be members of MyLounge.com
Term of Service
vBulletin v3.0.7, Copyright ©2000-2009, Jelsoft Enterprises Ltd.