Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.tools -> Re: Adding a line feed or carrage return to a field.

Re: Adding a line feed or carrage return to a field.

From: TurkBear <noone_at_nowhere.com>
Date: Wed, 10 Jan 2001 15:57:00 -0600
Message-ID: <qemp5tkvc9qgin4pqltkqj9k65pbjjggqm@4ax.com>

"James Alexander Starritt" <james_at_jamesstarritt.com> wrote:

>I have the following statement in a Developer report
>
>
>decode(ADDRESS1,NULL,NULL,address1||chr(13)) ||
>decode(ADDRESS2,NULL,NULL,address2||chr(13)) ||
>decode(ADDRESS3,NULL,NULL,address3||chr(13)) as addy,
>
>I would like it to desplay
>
>Address1
>Address2
>Address3
>
>At the moment it all stays on the same line .... I have tried char(10) and
>combinations of (10) and (13) but to no avail .... any idea's ?

Try
decode(ADDRESS1,NULL,NULL,address1)||chr(10)||decode(ADDRESS2,NULL,NULL,address2)||chr(10)||decode(ADDRESS3,NULL,NULL,address3)

Put the chr(10) outside of the decode Received on Wed Jan 10 2001 - 15:57:00 CST

Original text of this message

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