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

Answer Posted / m s aptil

update tab1 set name=name1,name1=name

Is This Answer Correct ?    2 Yes 9 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

When does a workload on SQL Azure get throttled?

113


How to override dml statements with triggers?

570


How to generate create view script on an existing view?

553


What is the difference between functions and scalar functions?

564


Can we join two tables without primary key?

605






How do you delete a data source?

535


How you provide security to cube? : sql server analysis services, ssas

530


What are alternate keys?

565


If a user does not have permission to a table, but has permission to a view created on it, will he be able to view the data in table?

550


Where sql server user names and passwords are stored in sql server? : sql server database administration

567


What is query processing?

537


What are the five characteristics of good data?

509


How to drop existing views from a database in ms sql server?

521


Is it safe to delete log files?

517


What are the advantages of using stored procedures?

532