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: Dumping database into text format.

Re: Dumping database into text format.

From: Johnmcg1 <johnmcg1_at_aol.com>
Date: 1997/11/03
Message-ID: <19971103032100.WAA07299@ladder01.news.aol.com>#1/1

Quick sqlplus - remember I am a beginner

REM A SQL SCRIPT TO BE RUN FROM SQLPLUS THAT CREATES A COMMA DELIMITTED CSV  FILE
REM which will be sent to SAS
REM
REM John McGrath Oct 14, 1997

SET PAGESIZE 0
SET FEEDBACK OFF
SET TERMOUT OFF SPOOL S:\RawData\main.csv

select
 TO_CHAR(mperiod,'YYYYMMDD')||','||Mstore||','||MITEM||','||MQ||','||MC||' ,'||MP
from Blah.mainallagg

/

SPOOL OFF

################


The TO_CHAR thing is a date conversionfunction

Enjoy !

John McGrath Received on Mon Nov 03 1997 - 00:00:00 CST

Original text of this message

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