STUFF():-
STUFF is SQL SERVER function which is used to insert the string in another string. It deletes the specified number of characters from first string and insert the new string in the place of deleted string.
Syntex:-
STUFF ( expression , start , length , replaceWith_expression )
Where expression can be a variable or column, start is the int values which specifies the deletion and insertion index,length is the integer which specifies the number of characters to be deleted and replaceWith_expression is the values which is to be inserted.
Example:-
In the above example we can see "SQL" string is replaced with "Microsoft"
0 Comment(s)