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: Line overflow

Re: Line overflow

From: kderaedt <kderaedt_at_hotmail.com>
Date: Wed, 16 Apr 2003 21:29:14 +0200
Message-ID: <3e9daf0b$0$12911$ba620e4c@reader1.news.skynet.be>


Karsten,

    Thanks, this is what I'm looking for. I did not find it on a Oracle site.
Regards

Karel

"Karsten Farrell" <kfarrell_at_belgariad.com> wrote in message news:MPG.1904d3e6b20a24f498973d_at_news.la.sbcglobal.net...
> kderaedt_at_hotmail.com said...
> > Hi,
> >
> > This is probably a dummy question. I have a script that dumps the
> > output of a table to a file. If I executed this script I receive the
> > message 'Line overflow'. How can I solve this? This is my sql
statement,
> > a'm using Oracle 8.1.7.3.
> >
> > select '#'|| PAP_ADDR ||'#'|| PUSH_ID ||'#'|| DECODE (STATE,0,'No
> > State',1,'Accepted',2,'In
> >

Progress',3,'Rejected',4,'Expired',5,'Cancelled',6,'Delivered',7,'Undelivera
> > ble',8,'Pendig',9,'Awaiting Confirm',10,'Timeout',11,'Aborted','NONE')
> > ||'#'|| PUSH_INITIATOR ||'#'|| CALLBACKURL ||'#'||
> > to_char(to_date('19700101000000','yyyymmddhh24miss')+(TIME_OF_POST /
> > 86400),'hh24:mi:ss dd.mm.yyyy') ||'#'||
> > to_char(to_date('19700101000000','yyyymmddhh24miss')+(EVENT_TIME /
> > 86400),'hh24:mi:ss dd.mm.yyyy') ||'#'|| PAP ||'#'|| PPG ||'#'|| DECODE
> > (PRIORITY,1,'High',2,'Medium',3,'Low',99,'Ultrahigh','NONE') ||'#'||
DECODE
> > (DELIVERY_METHOD,1,'Confirmed',2,'Prefer
Confirmed',3,'Unconfirmed',4,'Not
> > Specified','NONE') ||'#'|| DECODE
> > (NETWORK_REQUIRED,0,'False',1,'True','NONE') ||'#'|| DECODE
> > (BEARER_REQUIRED,0,'False',1,'True','NONE') ||'#'|| NETWORK ||'#'||
BEARER
> > ||'#'||

to_char(to_date('19700101000000','yyyymmddhh24miss')+(DELIVER_BEFORE
> > / 86400),'hh24:mi:ss dd.mm.yyyy') ||'#'||
> > to_char(to_date('19700101000000','yyyymmddhh24miss')+(DELIVER_AFTER /
> > 86400),'hh24:mi:ss dd.mm.yyyy') ||'#' from completed_push_tbl;
> >
> > Thanks
> >
> > Karel
> >
> Put a chr(10) - newline - here and there to break the line into multiple
> lines. You'll need to tell the program that loads this file about the
> newlines. For example,

>

> select '#' || PAP_ADDR || chr(10) || '#' || PUSH_ID || chr(10) ...
>

> Also, remember to set trimspool on so trailing spaces on each line are
> eliminated. Otherwise, each line will be right-padded to your linsize
> width.
> --
> /Karsten
> DBA > retired > DBA
Received on Wed Apr 16 2003 - 14:29:14 CDT

Original text of this message

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