Node is saved as draft in My Content >> Draft
-
Interchange the values of two columns in SQL Server
Suppose you have a Customer table in the database with the following data and you want to interchange the values of columns Name and Address.
Ex:
CREATE TABLE Customer
(
ID int IDENTITY,
Name varchar(100),
Address varchar(200)
)
To interchange the column values of Name and Address we will write the following query.
UPDATE Customer SET Name=Address , Address=Name
0 Comment(s)