56
of 62
FORALL Example
u
declare
u
type number_nt is table of NUMBER;
u
v_deptNo_nt number_nt:=number_nt(10,20);
u
begin
u
forall i in v_deptNo_nt.first()
..v_deptNo_nt.last()
u
update emp
u
set sal=sal+10
u
where deptNo=
v_deptNo_nt(i)
;
u
end;