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

What are some of the pros and cons of not dropping the sql server builtinadministrators group? : sql server security

1027


What is store procedure? How do they work? When do you use?

989


What are the filtered indexes?

1091


Why is normalisation important?

986


What is openrowset sql server?

1187


How to use linked server?

1265


What do you understand by physical_only option in dbcc checkdb?

1020


Can we use having clause without group by?

1021


What is named query? : sql server analysis services, ssas

998


What is normalization 1nf 2nf 3nf?

1105


How to use transact-sql statements to access the database engine?

1118


Is resultset an interface?

1035


How to insert new line characters into strings?

1028


Tell me extended events in sql server 2008?

1047


What is partition in sql server?

1084