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

What happens if null values are involved in comparison operations?

1039


What are the restrictions while creating batches in sql server?

1110


What is SQL Azure?

107


Is there any performance difference between if exists (select null from table) and if exists (select 1 from table)?

1006


How to provide values to user defined function parameters?

1057


Do you know query execution plan?

1262


What are the differences between char and varchar in ms sql server?

1120


What is abstracting periodical?

987


How to insert data into an existing table?

1025


What is dynamic cursor in SQL SERVER?

1132


What are the authentication modes in sql server? How can it be changed?

1187


1)what is the difference between Reinitializing a Subscription and synchronization the subscription? 2)when to use reinitializing ? 3)when to use synchronization? 4)when adding table or deleting a table what to do?(reinz.. or syn) 5)when adding a column what to do?

2165


How to find related tables in sql server?

999


What are the steps you can take to avoid “deadlocks”?

1021


Why use identity in sql server?

1166