Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: SQL*Plus spooling problem
Greg,
If I understand correctly: you have, say, 150 rows of data. you select *, spooling to afile.
your data is too long for the line, so oracle starts a new line. add up your column sizes and a space between each column to get the row size, then set linesize greater than that.
example: line is 90 bytes. SET LINESIZE 100 select * from table;
HTH
janet
Greg Grooms wrote:
>
> I'm spooling data from a select statement to a file in SQL*Plus on an old
> Oracle 5 database (not my database!). The problem is with too many rows in
> the data file. The data looks OK, but the select count(*) and the wc on
> the file never match. Why would Oracle split up each row into multiple
> rows in the file?
>
> I have tried:
>
> select a, b, c from table1
> select * from table1
> select a||b||c from table1
>
> None work as I expect...1 line per row of data.
>
> Any ideas?
>
> Thanks
Received on Tue Feb 11 1997 - 00:00:00 CST