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 ms sql server reporting services vs crystal reports?

855


Give the query of getting last two records from the table in SQL SERVER?

900


define and explain the differences between clustered and non-clustered indexes.

1119


How to create new tables with "select ... Into" statements in ms sql server?

930


Define tempdb database?

941


How you provide security to cube? : sql server analysis services, ssas

922


Difference between connected and disconnected database in .net with sql server?

1034


Why use “nolock” in sql server?

983


Explain the stored procedure?

992


What is db stored procedure?

815


I have triggers,views,functions,stored Procedures for a table. When I am dropping that table which objects are deleted?

1079


Give an example of why you would want to denormalize a database

924


Can you insert NULL in unique column?

1095


What are the restrictions applicable while creating views? : SQL Server Architecture

979


What is importing utility?

933