|
|
|
|
|
|
| Author |
Message |
eban *nix forums beginner
Joined: 26 Mar 2005
Posts: 10
|
Posted: Sat Apr 02, 2005 8:31 am Post subject:
Re: How to get plain output (sqlplus)
|
|
|
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:
| Quote: | SELECT coluumn_name || ',' || column_name
FROM ....
|
|
|
| Back to top |
|
 |
DA Morgan *nix forums Guru
Joined: 06 Mar 2005
Posts: 1042
|
Posted: Fri Apr 01, 2005 9:32 pm Post subject:
Re: How to get plain output (sqlplus)
|
|
|
eban wrote:
| Quote: |
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 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) |
|
| Back to top |
|
 |
eban *nix forums beginner
Joined: 26 Mar 2005
Posts: 10
|
Posted: Fri Apr 01, 2005 7:07 pm Post subject:
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 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 |
|
| Back to top |
|
 |
Google
|
|
| Back to top |
|
 |
|
|
The time now is Thu Jan 08, 2009 12:34 am | All times are GMT
|
|
Bankruptcy | Credit Counseling | Problem Mortgage | Bankruptcy | Babb Fest
|
|
Copyright © 2004-2005 DeniX Solutions SRL
|
|
|
|
Other DeniX Solutions sites:
Unix/Linux blog |
electronics forum |
medicine forum |
science forum |
|
|
Privacy Policy
|
Powered by phpBB © 2001, 2005 phpBB Group
|
|