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

Is oracle faster than sql server?

1005


How to insert stored procedure result into temporary table?

1065


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

1066


Define clusters?

1139


What are sql server functions?

1028


What are scheduled tasks in sql server?

1139


Explain the purpose of indexes?

1022


What does null mean?

1052


How does SSIS(Sql Server Integration Services) deffer from DTS(Data Transformation Services)?

1264


you want to be sure that queries in a database always execute at the maximum possible speed. To achieve this goal you have created various indexes on tables which other statement will keep the database in good condition? : Sql server administration

1158


How to get all stored procedures in sql server?

1059


What can be used instead of trigger?

1208


What is 2nf example?

1053


what are questions asked in TCS for database tester (sqlserver)for 2-3 exp?

5975


Explain sql server service broker?

1026