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 mixed authentication mode of sql server?

1045


How to start sql server browser service?

1124


How to add the custom code in Report?

126


What is field in algebra?

1022


Explain syntax for viewing, dropping and disabling triggers?

943


Why SQL Agent is used?

1130


Explain relational data?

906


Why use stored procedures in sql server?

1000


Explain tables in SQL Azure?

120


What is the use of commit?

992


What is service broker? : sql server database administration

984


Explain important index characteristics?

1023


where can you add custom error messages to sql server? : Sql server administration

1099


What is nonclustered index on computed columns?

943


what is raid and what are different types of raid configurations? : Sql server database administration

1027