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

Home -> Community -> Usenet -> c.d.o.server -> Re: Simple SQL question

Re: Simple SQL question

From: DA Morgan <damorgan_at_psoug.org>
Date: Thu, 02 Feb 2006 12:08:18 -0800
Message-ID: <1138910897.724046@jetspin.drizzle.com>


Andy Hassall wrote:
> On Tue, 31 Jan 2006 15:27:28 -0800, DA Morgan <damorgan_at_psoug.org> wrote:
>
>

>>Mahesh Rajendran wrote:
>>
>>>>>The problem with this approach is you may not know how many layers of
>>>>>replace you need.
>>>
>>>Agreed. And it will not work if there is leading space~!.
>>>Thanks
>>
>>Why is this discussion continuing? Translate will work in all
>>situations and is faster.

>
>
> TRANSLATE doesn't give the result the poster asked for.
>
> SQL> select translate('the cat sat on the mat', 'A ', 'A')
> 2 from dual;
>
> TRANSLATE('THECAT
> -----------------
> thecatsatonthemat

Thanks.

-- 
Daniel A. Morgan
http://www.psoug.org
damorgan_at_x.washington.edu
(replace x with u to respond)
Received on Thu Feb 02 2006 - 14:08:18 CST

Original text of this message

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