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 / ruchi

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 ?    9 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain how to maintain a fill factor in existing indexes?

995


How to sort query output in descending order in ms sql server?

944


What is sql server replication? : sql server replication

991


Describe in brief system database.

1014


Explain what is the main purpose of having conversation group?

942


How to update multiple rows with one update statement in ms sql server?

1205


What is the latest version of microsoft sql server?

1047


What are the disadvantages of indexes?

1090


How to create view in stored procedure sql server?

1017


What does sql server mean?

1071


What is difference between count (*) and count 1?

929


Differentiate sql server reporting services vs. Crystal reports?

201


What are .mdf files?

942


What is policy management?

997


What is use of except clause? How does it differ from not in clause?

1020