Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Re: Find line breaks on different systems
Rauf Sarwar wrote:
> Originally posted by Bernhard Graeuler
>> Hi,
>>
>> Do I have to check all possibilities in my stored procedure or
>> is there another way to do this.
>>
>> Confusing: Im using Windows, so I expected 'CRLF' as line break, but
>> SPLITLINE only works correctly if it searches for 'CR'.
>>
>
> To be safe and OS independent, check separately for both.
>
> IF ( (INSTR(string, CHR(13), 1, 1) != 0) OR
> (INSTR(string, CHR(10), 1, 1) != 0) ) THEN
> .....
> END IF
>
Ok. Thanks. I check for the windows line break before, so there won't be any troubles with extant line break signs.
Regards
Bernhard Received on Fri Aug 01 2003 - 12:09:16 CDT
![]() |
![]() |