Re: Dumping tables in variable length format
From: Michael Krolewski <mikkro_at_hbsi.com>
Date: 1997/12/01
Message-ID: <34829568.FC_at_hbsi.com>#1/1
from ....
Date: 1997/12/01
Message-ID: <34829568.FC_at_hbsi.com>#1/1
Tony O'Hagan wrote:
>
> I need to export Orcale 8 tables in the standard comma delimited format
> such as:
>
> 1,"ABC" ,"Alabama",y,y,y,"DEF", 2,97/12/03
> 1,"DEF","Washington",y,y,y,"GHI", 2,97/12/23
>
> I'm familiar with using spool and select commands in SQL Plus which outputs
> in
> fixed width formats.
>
> Thanks.
> Tony O'Hagan.
select field1 || ',"' ||
field2 || '","' || field3 .... fieldn-1 || ',' || to_char(fieldn,'YY/MM/DD')
from ....
Mike Krolewski Received on Mon Dec 01 1997 - 00:00:00 CET