Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> Re: Searching for newline characters in a varchar
Bryan J. Gentile wrote:
>
> I want to find out how I can search through a variable of type varchar
> and replace newline characters with something else. (PL/SQL)
>
> --
> **************************************
> Bryan J. Gentile
> Consultant
> Business Data Services, Inc.
> Glastonbury, CT 06033
> Phone: (860) 633-3693 (ext. 3006)
> Vmail: (ext. 6030)
> **************************************
Hi,
try
SUBSTR(string,1,INSTR(string,chr(13))-1) || newchar ||SUBSTR(string,INSTR(string,chr(13)) + 1,length(string))
-- Regards M.Gresz :-)Received on Tue Oct 14 1997 - 00:00:00 CDT