Getting Started with Adobe After Effects - Part 6: Motion Blur
This module helps you to share, discuss and learn interview questions and answers of different technologies

What is difference between STUFF and REPLACE in SQL Server?

May 14 2012 12:00AM by Nirav Gandhi   

Question

What is difference between STUFF and REPLACE in SQL Server?

Answer

REPLACE is used to replace all the occurances of the given pattern in a string.

Example: select Replace('Nirav','N','R')

O/P: Rirav

STUFF: This function is used to replace the part of string with some other string.

syntax: STUFF (stringexpression, start, length, replacementcharacters)

Example:SELECT STUFF('Nirav''s Blog is USEFUL',9,4,'DATABASE')

Output: Nirav's DATABASE is USEFUL

Read More..   [32134 clicks]

Published under: SQL Server Interview Questions ·  ·  ·  · 


Nirav Gandhi
38 · 5% · 1503
0
Liked
 
0
Asked



Submit

Your Comment


Sign Up or Login to post a comment.

"What is difference between STUFF and REPLACE in SQL Server?" rated 5 out of 5 by 7 readers
What is difference between STUFF and REPLACE in SQL Server? , 5.0 out of 5 based on 7 ratings
    Copyright © Rivera Informatic Private Ltd Contact us      Privacy Policy      Terms of use      Report Abuse      Advertising      [ZULU1097]