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: STUFF command

Re: STUFF command

From: Daniel Morgan <damorgan_at_x.washington.edu>
Date: Wed, 31 Mar 2004 07:35:35 -0800
Message-ID: <1080747315.758692@yasure>


grille11_at_yahoo.com wrote:
> Hello,
>
> I am trying to find the equivalent of the STUFF command from SQL (deletes a
> specified length of characters and inserts another set of characters at a
> specified starting point).
> Would someone knows this?
> thanks in advance
>
>
> This example returns a character string created by deleting three characters
> from the first string (abcdef) starting at position 2 (at b) and inserting
> the second string at the deletion point.
>
> SELECT STUFF('abcdef', 2, 3, 'ijklmn')
> GO
> ---------
> aijklmnef

The closest would be REPLACE.
http://www.psoug.org/reference/translate_replace.html

-- 
Daniel Morgan
http://www.outreach.washington.edu/ext/certificates/oad/oad_crs.asp
http://www.outreach.washington.edu/ext/certificates/aoa/aoa_crs.asp
damorgan_at_x.washington.edu
(replace 'x' with a 'u' to reply)
Received on Wed Mar 31 2004 - 09:35:35 CST

Original text of this message

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