Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Re: NewLine with SQL
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
![]() |
![]() |