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...

How to swap the data of two columns in a table. both the
columns containing varchar values.

Answer Posted / ami tkumar

Sorry for previous answer.

DECLARE @temp AS varchar(50)
UPDATE swapdata SET @temp=value2,value2=value1,value1=@temp

Is This Answer Correct ?    5 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to enable/disable indexes?

1068


What is exporting and importing utility?

1091


How do I know if localdb is running?

955


What is difference between index and primary key?

1100


What is the use of “join” in sql server?

1099


Can we linked SharePoint to a SQL database?

1031


Why do we backup Active Directory ?

1046


What is the difference between SQL notification and SQL invalidation?

1194


What is catalog views?

1071


what is memory-optimized nonclustered indexes

1018


What is normalization? What number of normalization shapes are there?

1109


what is the difference between writing data to mirrored drives versus raid5 drives. : Sql server administration

971


List the different normalization forms?

985


Explain partitioned view?

1086


Equi join and non equi join is possible with sql server?

1025