Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

What is the STUFF function and how does it differ from the
REPLACE function?

Answer Posted / abhaymalviya

STUFF - Delete a specified length of characters and insert
another set of characters at a specified starting point.
For example: SELECT STUFF('asdfghjkl', 3, 5, 'XYZ')
Go
here the result set is:

asXYZkl

REPLACE - Replace all occurrences of the second given string
expression in the first string expression with a third
expression.
For Example: SELECT REPLACE('Abhay', 'a', 'KKT')
Here the result set is:

KKTbhKKTy


Is This Answer Correct ?    37 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain time data type in sal server 2008?

923


How can we improve performance by using SQL Server profiler?

1053


What is the difference between truncate and delete commands?

1068


What are the different editions available in sql server 2000?

1052


What does COMMIT command do?

1065


What is the difference between dropping a database and taking a database offline?

1174


What are the differences between decimal and float in ms sql server?

1244


Explain having clause?

965


What the difference between UNION and UNIONALL?

1040


Differentiate between a primary key and a unique key.

1070


What options are available to audit login activity? : sql server security

1153


How to add an address record into adventureworkslt?

986


How will you add a dimension to cube? : sql server analysis services, ssas

1086


What are the acid properties?

1005


What is inner join? Explain with an example?

1222