Question: What does the following code do ? Declare cursor c1 is select salary from manager; s number(10); n number(10):=0; begin open c1; loop fetch c1
What does the following code do ?
Declare
cursor c1 is select salary from manager;
s number(10);
n number(10):=0;
begin
open c1;
loop
fetch c1 into s ;
exit when c1%not found;
n:=n+ s ;
end loop;
dbms_output.put_line(n);
close c1;
end;
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
