STUFF - Deletes a specified length of characters and inserts another set of characters at a specified starting point. SELECT STUFF('abcdef', 2, 3, 'ijklmn') GO Here is the result set: --------- aijklmnef REPLACE - Replaces all occurrences of the second given string expression in the first string expression with a third expression. SELECT REPLACE('abcdefghicde','cde','xxx') GO Here is the result set: ------------ abxxxfghixxx
|
| Author: Kapil Dhawan 17 Jun 2008 | Member Level: Gold Points : 2 |
Hello Nice piece of code Thanks for sharing your knowledge with us. I hope to see more good code from your side This code is going to help lots of guys. Ton Thanks to you Regards, Kapil
|
| Author: Satyanarayan SushilKumar Bajoria 01 Jul 2008 | Member Level: Gold Points : 2 |
Hi,
Nice peice of code.
Short and simple to understand.
Thanks for sharing your knowledge. Keep posting such useful code.
Thanks and Regards S.S.Bajoria
|