STUFF - Delete a specified length of characters and insert another set of characters at a specified starting point. eg.
SELECT STUFF('VASANTH', 3, 2, 'XYZ')
3 - Starting Position from where the Replace Starts
1 - upto Which position it needs to be replaced from '3'
'XYZ' - Replacing characters in that position
Result is : VAXYZNTH
REPLACE - Replace all occurrences of the second given string expression in the first string expression with a third expression. eg.
SELECT REPLACE('VASANTH', 'A', 'KZT')
Result is : VKZTSKZTNTH
Captions
- Asp.Net (9)
- ASP.Net Tips (1)
- C# (7)
- Computer (1)
- Internet Explorer (5)
- Java Script (11)
- Shortcut Keys (4)
- SQL Programming - Common Mistakes (11)
- Sql Server (22)
- Sql Server Definitions (8)
- Sql Server Test (2)
- SSRS (2)
About Me
- Vasanth.S
- I'm just normal guy who like to travel, addicted to TV and Computer, Playing Computer Games and Watching Movies and many more. Have lot of idea and quote in life
My Blog List
-
-
Pass data from one page to another using post15 years ago