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

How do I find the sql server instance name?

961


Is truncate a dml command?

937


What are the components of dbms?

948


What is query parameter in ssrs?

160


What the different components of Replication and what is their use?

1059


Differentiate between delete and truncate.

1054


How to write a query with a right outer join in ms sql server?

904


What is scan table/view and seek table/view when its occurs? : sql server database administration

1036


what are user defined datatypes? : Sql server database administration

960


What are relationships and mention different types of relationships in the dbms

958


How retrieve field names from the table in SQL through JAVA code?

1900


hi i am working as a testengineer , so i want to no the backend data base connection can any one tell mwe in detail

2211


Data table as parameter in sql server?

1039


What are the differences between user defined functions and stored procedures?

1059


What is usually the first word in a sql query?

1125