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

Home -> Community -> Mailing Lists -> Oracle-L -> Re: SQL question

Re: SQL question

From: David Sharples <davidsharples_at_gmail.com>
Date: Thu, 2 Feb 2006 21:02:27 +0000
Message-ID: <be592d550602021302y266103f7xd5d619a43191d3fb@mail.gmail.com>


select replace(file_name, 'elfd',elfp') from dba_data_files

that will give what you want unless I have misunderstood you

On 2/2/06, Johan Muller <johan.muller_at_gmail.com> wrote:
>
> How can I use sql (decode I think) to do the following;
>
> select file_name from dba_data_files;
>
>
> /u02/oradata/elfd/arch_closet_idx_01.dbf
>
>
> Now I want to change the /elfd/ (sid) to /elfp/ in each string.
>
> Any idea (decode). I tried translate and replace but only manages to
> return the (new) sid value of elfp.
>

--
http://www.freelists.org/webpage/oracle-l
Received on Thu Feb 02 2006 - 15:02:27 CST

Original text of this message

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