updating table with another table [message #374261] |
Mon, 04 June 2001 00:10 |
m. durga prasad
Messages: 1 Registered: June 2001
|
Junior Member |
|
|
Sir I have a proble with updating table with another table. Suppose Emp and Emp1 are two tables with same columns and emp1 have 90% rows of emp. During the updating process emp1 e_name of some records were lost. Thus updating emp1 with emp table where e_code is same. This makes error. I have given command as
update emp1 set e_name=emp.e_name where emp1.e_name is null and emp1.e_code=emp.e_code;
This reports invalid column name.
please suggest me to update the emp1 table where e_name is null with emp table e_name.
Thanking you Sir.
|
|
|
|
|
|
|