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: SQL Query - HELP!!!

Re: SQL Query - HELP!!!

From: Stephan Born <stephan.born_at_beusen.de>
Date: Mon, 14 May 2001 10:56:25 +0200
Message-ID: <3AFF9DB9.A7F243B4@beusen.de>

dwarf8 wrote:
>
> I need to replace the underscore '_' character in my database with
> either dashes '-' or obliques '/', depending on each case.
> In order to determine which numbers get which replacement character, I
> need to find all occurances of numbers containing the underscore '_'
> character.
> Every time I write a script, I get stumped 'cause underscore '_' is a
> reserved character meaning "one character"...
> How do I either declare underscore '_' as a value or is there an
> "escape" as in old DB2 that will let me redefine the character for the
> purposes of this one script??
> Thanks all for great help!
> 8 out

select *
from my_table t
where t.my_col like '%/_%' escape '/'

should work....works at least since version 7.3.x

--
Received on Mon May 14 2001 - 03:56:25 CDT

Original text of this message

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