REPLACE
is used to replace all the occurrences of the given pattern in a
string.
Example
SELECT REPLACE('Hello i am here','H','m')
-- mello i am
mere
STUFF used to
replace the part of string with some other string.
Example
SELECT STUFF('Hello i am here',1,5,'Hi')
-- Hi i am here
Comments
Post a Comment