I have a table called Employee
Eno ename AttributeValue AttributeName 1 aa a123 abc 2 bbb b123
This is really good example
SELECT * from employees; Go DECLARE @temp as varchar(20) update employees set @temp = fname, fname = lname, lname = @temp WHERE deptno = 10; GO SELECT * from employees;
update Employee set AttributeValue = AttributeName, AttributeName = AttributeValue