dbTalk Databases Forums  

replace VARCHAR2 column substring

comp.databases.oracle.misc comp.databases.oracle.misc


Discuss replace VARCHAR2 column substring in the comp.databases.oracle.misc forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
lora
 
Posts: n/a

Default replace VARCHAR2 column substring - 03-12-2009 , 09:22 AM






Hello all,

What is the easiest way to replace part of a string in a VARCHAR2
column with another string?

My strings span multiple lines and I just need to replace one string
with another.

Is there an SQL command to do this w/o requiring a procedure?

I'm on Oracle10g and my client is TOAD. TOAD lets me run any valid SQL
command.

Thank you!

Reply With Quote
  #2  
Old   
gareth@jamms.org
 
Posts: n/a

Default Re: replace VARCHAR2 column substring - 03-12-2009 , 10:07 AM






On 12 Mar, 15:22, lora <anjela_... (AT) yahoo (DOT) com> wrote:
Quote:
Hello all,

What is the easiest way to replace part of a string in a VARCHAR2
column with another string?

My strings span multiple lines and I just need to replace one string
with another.

Is there an SQL command to do this w/o requiring a procedure?

I'm on Oracle10g and my client is TOAD. TOAD lets me run any valid SQL
command.

Thank you!
I'm not sure what you mean when you say that a VARCHAR2 datatype spans
multiple lines. However, is the REPLACE function any use to you?

http://download.oracle.com/docs/cd/B...134.htm#i78608

HTH

-g


Reply With Quote
  #3  
Old   
Michael Austin
 
Posts: n/a

Default Re: replace VARCHAR2 column substring - 03-12-2009 , 07:29 PM



gareth (AT) jamms (DOT) org wrote:
Quote:
On 12 Mar, 15:22, lora <anjela_... (AT) yahoo (DOT) com> wrote:
Hello all,

What is the easiest way to replace part of a string in a VARCHAR2
column with another string?

My strings span multiple lines and I just need to replace one string
with another.

Is there an SQL command to do this w/o requiring a procedure?

I'm on Oracle10g and my client is TOAD. TOAD lets me run any valid SQL
command.

Thank you!

I'm not sure what you mean when you say that a VARCHAR2 datatype spans
multiple lines. However, is the REPLACE function any use to you?

http://download.oracle.com/docs/cd/B...134.htm#i78608

HTH

-g
are you suggesting that he actually read the "fine" manual? What a
concept.


Reply With Quote
  #4  
Old   
gareth@jamms.org
 
Posts: n/a

Default Re: replace VARCHAR2 column substring - 03-13-2009 , 04:33 AM



On 13 Mar, 01:29, Michael Austin <maus... (AT) firstdbasource (DOT) com> wrote:
Quote:
gar... (AT) jamms (DOT) org wrote:
On 12 Mar, 15:22, lora <anjela_... (AT) yahoo (DOT) com> wrote:
Hello all,

What is the easiest way to replace part of a string in a VARCHAR2
column with another string?

My strings span multiple lines and I just need to replace one string
with another.

Is there an SQL command to do this w/o requiring a procedure?

I'm on Oracle10g and my client is TOAD. TOAD lets me run any valid SQL
command.

Thank you!

I'm not sure what you mean when you say that a VARCHAR2 datatype spans
multiple lines. *However, is the REPLACE function any use to you?

http://download.oracle.com/docs/cd/B.../b14200/functi...

HTH

-g

* are you suggesting that he actually read the "fine" manual? What a
concept.
I figured I'd teach the OP to fish rather than just spoon-feed

-g



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.