Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.tools -> Re: how to find linefeeds and cr in char fields

Re: how to find linefeeds and cr in char fields

From: Andreas Necker <Andreas.Necker_at_isb-ag.de>
Date: Thu, 05 Apr 2001 12:47:15 +0200
Message-ID: <3ACC4D33.A95C128A@isb-ag.de>

hi,

Carsten Jacobs wrote:
>
> Hello all,
>
> how can I find linefeeds and carriage returns in a character fields?
>
> select * from text_tab
> where textfield like '% ??? %'
>
> Many thanks for a quick answer!
>
> Carsten

SELECT *
  FROM text_tab
 WHERE textfield LIKE '%' || CHR( 10 ) || '%'

    OR textfield LIKE '%' || CHR( 13 ) || '%';

-- 
Andreas Necker

ISB AG              Tel: +49 (0)721/82800-0
Karlstrasse 52-54   Fax: +49 (0)721/82800-82
76133 Karlsruhe     mailto:Andreas.Necker_at_isb-ag.de
Germany             http://www.isb-ag.de
Received on Thu Apr 05 2001 - 05:47:15 CDT

Original text of this message

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