此代码对我不起作用并给我发消息并发送消息
ORA-01422 exact fetch returns more than requested number of rows
编码:
declare
a_id employees.employee_id%type;
b_name employees.first_name%type;
c_salary employees.salary%type;
begin
for i in 1..10 loop
select employee_id, first_name, salary into a_id, b_name, c_salary from employees
where employee_id='a_id', first_name='b_name', salary='c_salary';
insert into awais(employee_id, first_name, salary) values (a_id, b_name, c_salary);
end loop;
end;
/