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

How to delete duplicate rows from table except one?

931


Is truncate autocommit?

897


Difference between Logical Page and Physical Page in SSRS.

459


What is a filestream?

942


Why is normalisation important?

899


How to fine-tune reports?

247


Explain indexed views and partitioned view with their syntax.

1077


List the data types available in mssql?

957


Explain what are the basic functions for master, msdb, model, tempdb databases?

911


How can you transfer data from a text file to a database table? Or how can you export data from a table to a comma delimited (csv) file? Or how can you import data from ms access to a table in a database? Or how can you export data from a table to an excel file?

969


What is exporting and importing utility?

1017


how to create a scrollable cursor with the scroll option? : Sql server database administration

1025


how to use DTS package in 2000,2005,2008 in sql server

1786


Is resultset an interface?

903


What is tcl in sql server?

1076