Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Re: SQL*PLUS spooling and CR/LF

Re: SQL*PLUS spooling and CR/LF

From: abrusko <abruskoNOxqSPAM_at_binney-smith.com>
Date: Mon, 23 Aug 1999 11:13:17 -0700
Message-ID: <00091c0e.e6a99807@usw-ex0106-048.remarq.com>


Ken,

I am in a Windows 95 environment, using SQL*PLUS to access Oracle. I'm not sure what OS Oracle is running on, but I want to use SQL*PLUS to execute a query to "Spool" the results to a text file.

A version of the Query is below (I took out all of the columns except one so as not to waste space here):

spo c:\freightproject\spool\FrtEdi;
set termout off;
set newpage 0;
set space 0;
set linesize 999;
set pagesize 0;
set echo off;
set feedback off;
set heading off;
select '"', a.frt_order, '"'
from frt.freight
where (frt_mode = 'U' or frt_mode = 'u' or frt_mode = 'C' or frt_mode = 'c');
spo off;
rem remove the following lines for production set termout on;
set newpage 1;
set space 1;
set linesize 100;
set pagesize 24;
set echo off;
set feedback 6;
set heading on;

I would like for there to be a CR/LF at the end of each line following frt_order.

Thanks!!!

Received on Mon Aug 23 1999 - 13:13:17 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US