Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.tools -> Re: EOL character
There are few of them around.!!!
1- chr(13)
SQL> select 'this is a test'||chr(13)||' this is a test' from dual;
'THISISATEST'||CHR(13)||'THISI
1* select 'this is a test'||chr(10)||' this is a test' from dual SQL> / 'THISISATEST'||CHR(10)||'THISI
also you could do
declare
new_line char(2);
begin
new_line:='
';
dbms_output.put_line('This is a new line'||new_line||this is newline');
end;
/
Tom
Wojciech Grupa <wgrupa_at_lucent.com> wrote in message
news:3922D3A2.DF7C60A0_at_lucent.com...
> Hi,
>
> Can anyone tell me what is end-of-line character in PLSQL. I need to have:
>
> txt varchar2(2000)
>
> txt := 'some text' || EOL || 'some text'
>
> thanks,
>
> Wojtek
Received on Thu May 18 2000 - 00:00:00 CDT
![]() |
![]() |