When i run the below SQL i am getting the following error
declare
cursor c1 is SELECT emp_num,retention_id
FROM tarner.nexros b;
begin
for i in c1 loop
UPDATE en.agt_name a
SET a.emp_num =b.emp_num
where a.userid = b.retention_id;
commit;
end loop;
end;
Error:
ORA-06550: line 3, column 13:
PL/SQL: ORA-00942: table or view does not exist
ORA-06550: line 2, column 14:
PL/SQL: SQL Statement ignored
ORA-06550: line 9, column 11:
PL/SQL: ORA-00942: table or view does not exist
ORA-06550: line 9, column 1:
Please help me out!!
Thanks,
reacha
declare
cursor c1 is SELECT emp_num,retention_id
FROM tarner.nexros b;
begin
for i in c1 loop
UPDATE en.agt_name a
SET a.emp_num =b.emp_num
where a.userid = b.retention_id;
commit;
end loop;
end;
Error:
ORA-06550: line 3, column 13:
PL/SQL: ORA-00942: table or view does not exist
ORA-06550: line 2, column 14:
PL/SQL: SQL Statement ignored
ORA-06550: line 9, column 11:
PL/SQL: ORA-00942: table or view does not exist
ORA-06550: line 9, column 1:
Please help me out!!
Thanks,
reacha