Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Re: Flat file creation problems
Ste C. schrieb in Nachricht <8678so$5g5$1_at_nnrp1.deja.com>...
> I want to create a flat file from a table
>select column1 a,
> column2 b,
> column3 c,
> column4 z
>from columns
>where column3 = 'Y'
>when I edit the file temp.lis the output looks like
>
> 11111AAAAAAAAAAAAAAAAAAAAAAAAAY 1111
> 22222AAAAAAAAAAAAAAAAAAAAAAAAAY 2222
> 33333AAAAAAAAAAAAAAAAAAAAAAAAAY 3333
> 44444AAAAAAAAAAAAAAAAAAAAAAAAAY 4444
> 55555AAAAAAAAAAAAAAAAAAAAAAAAAY 5555
this problem led me to use explicit formatting and concatenation like
select lpad(to_char(a), 5, 0) ||
rpad(b, 25) || ...
in the past ... Received on Mon Jan 24 2000 - 19:51:08 CST
![]() |
![]() |