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: NewLine with SQL

Re: NewLine with SQL

From: Ed Prochak <edprochak_at_magicinterface.com>
Date: Sat, 06 Oct 2001 03:30:00 GMT
Message-ID: <3BBEA59E.750493F5@magicinterface.com>

Why is everyone doing it the hard way? IN SQLPLUS just type:

select 'myString,
' || myString2 from toto;

Steve Guilford wrote:
>
> DBA Casino Monté-Carlo wrote:
>
> > Hi,
> >
> > Someone could tel me how can i do to insert a NewLine Character in a :
> >
> > select "myString," || NewLine || myString2 from toto;

FYI Oracle uses single quotes.

> >
> > result is : myString,
> > myString2
> >
> > Thank's
> >
> >
> >
> select "mystring,"||chr(10)||chr(12)||'mystring2' from toto;

 BTW I think you wanted char(13) not 12. Received on Fri Oct 05 2001 - 22:30:00 CDT

Original text of this message

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