| How to update substring using sql [message #639491] |
Wed, 08 July 2015 10:44  |
 |
gorants
Messages: 85 Registered: May 2014 Location: ATL
|
Member |
|
|
Hello all,
I need to update the substring of a table column, how can i do that?. my table column reuturns value as , if i want to update particular substring location how can i do that.
Ex: YY99YYYYYYY update the highlighted from Y to N.
appreciate your inputs.
[Updated on: Wed, 08 July 2015 10:46] Report message to a moderator
|
|
|
|
|
|
|
|
|
|
| Re: How to update substring using sql [message #639495 is a reply to message #639493] |
Wed, 08 July 2015 11:59   |
Lalit Kumar B
Messages: 3174 Registered: May 2013 Location: World Wide on the Web
|
Senior Member |
|
|
gorants wrote on Wed, 08 July 2015 22:12scenario is like if we want to update any character in given string of specified location ( Ex: 1 , 5 , 6 character position etc)
So, you know the INSTR i.e. position of the character in the string to be updated? Isn't it? Then you just need to use UPDATE statement with INSTR in the predicate.
|
|
|
|
|
|
| Re: How to update substring using sql [message #639497 is a reply to message #639496] |
Wed, 08 July 2015 12:07  |
 |
BlackSwan
Messages: 26766 Registered: January 2009 Location: SoCal
|
Senior Member |
|
|
Michel Cadot wrote on Wed, 08 July 2015 10:02
Tell me if I am wrong but you never feedback, you never thank people who helped you and you always refuse to post a test when we have repeatedly asked you.
Now, tell us why we should continue to help you?
+1
|
|
|
|