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 / sandeep rana

create table tmp_t
(
aa varchar2(50),
bb varchar2(50)
)


--insert into tmp_t values('1','5')


select * from tmp_t

update tmp_t set aa=bb , bb=aa

Is This Answer Correct ?    7 Yes 12 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is surrogate key? : sql server analysis services, ssas

1065


What are the purposes and advantages stored procedure?

905


Difference between drill down and drill through report.

906


Is null in sql server?

955


What is recompile sql server?

1000


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

1063


can an automatic recovery be initiated by a user? : Sql server administration

913


How to create an multi-statement table-valued function?

951


Do you know what is normalization of database? What are its benefits?

1048


How to check parameter value in stored procedure sql server?

931


What is the Main Difference between ACCESS and SQL SERVER?

1083


How to change the ownership of a schema in ms sql server?

1114


What is the report builder?

133


Why use view instead of a table?

896


What is command parameter in ssrs?

155