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 -> How to convert LONG to CHAR?

How to convert LONG to CHAR?

From: Helmut Plakties <helmut.plakties_at_cp.novartis.com>
Date: Fri, 10 Mar 2000 12:59:43 GMT
Message-ID: <38c8f1b6@guardhouse.chbs>


Hi,

I am trying to format several columns from an Oracle table into a formatted text. One column is of data type LONG. I tried to concatenate all columns with ||'s and some text in between, (like:
select
 myLong ||chr(13)||'someText'
FROM
 myTable;
)
but it seems I cannot mix varchar and long. Is there a conversion function?

Alternatively, when issuing a select statement like this: select
 myLong,'someText'
FROM
 myTable;
I get the 'someText' _before_ the output from the long field!?

Thanks a lot for your help!

Helmut Received on Fri Mar 10 2000 - 06:59:43 CST

Original text of this message

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