Suppose a emp table contain following field
name,o_salary,n_salary and n_salary is blank ,there values is:
A 5000
b 6000
c 7000
d 8000
now I want to update emp table with following data:-
name o_salary n_salary
A 5000 5000
b 600
Help me immediate
Loading

Abhay ShankerPosted Apr 16, 2014, 2:45 AM
Khan Abrar AhmedPosted Apr 16, 2014, 2:33 AM
update emp set n_salary=5000 where name='A'
update emp set o_salary=600 where name='b'
Bharath ReddyPosted Apr 16, 2014, 2:07 AM
Princy GuptaPosted Apr 16, 2014, 1:10 AM
SET column1=value1,column2=value2,...