![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
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! |
#3
| |||
| |||
|
|
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 |
#4
| |||
| |||
|
|
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. |

![]() |
| Thread Tools | |
| Display Modes | |
| |