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

Answer Posted / nilesh

UPdate temp
set col1=col2,
col2=col1

Is This Answer Correct ?    21 Yes 15 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How you can find out if an index is useful to the optimizer?

660


What are the restrictions that views have to follow? : SQL Server Architecture

745


How important do you consider cursors or while loops for a transactional database?

708


How to integrate the ssrs reports in application?

714


Why main is user defined function?

752






How do I partition a table in sql server?

713


How to enter unicode character string literals in ms sql server?

751


What is check constraint in sql server?

715


How to bind a view to the schema of the underlying tables?

757


How many types of built in functions are there in sql server 2012?

675


if you encounter this kind of an error message, what you need to look into to solve this problem? : Sql server database administration

721


Explain transaction server auto commit?

719


How to convert numeric expression data types by assignment operations?

726


What is meant by Active-Passive and Active-Active clustering setup?

749


What are sub reports and how to create them?

113