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
How to enable/disable indexes?
What is exporting and importing utility?
How do I know if localdb is running?
What is difference between index and primary key?
What is the use of “join” in sql server?
Can we linked SharePoint to a SQL database?
Why do we backup Active Directory ?
What is the difference between SQL notification and SQL invalidation?
What is catalog views?
what is memory-optimized nonclustered indexes
What is normalization? What number of normalization shapes are there?
what is the difference between writing data to mirrored drives versus raid5 drives. : Sql server administration
List the different normalization forms?
Explain partitioned view?
Equi join and non equi join is possible with sql server?