Quick actions

cmd+k|ctrl+k

Navigation

Languages

nitled

Snippet info

Language

C

Visibility

public

Author

sriram

Created

2023-09-12T09:24:23.198441Z

Updated

2023-09-12T09:24:23.198441Z

declare
stu_id number;
stu_name varchar(20);
cursor stu_cur is
select sid,sname
from stt
where sclass='first';
Begin
Open stu_cur;
Loop
fetch stu_cur into stu_id,stu_name;
exit when stu_cur%notfound;
dbms_output.put_line('student_id: '|| stu_id || 'student_name:'|| stu_name);
end loop;
close stu_cur;
end;
INFO