Hi... I have a table named testtransaction which stores pervQuestionId and NextQuestionId... How to insert records in this table through cursor? there is something cursoe.getnext()...how do i implement it? My code is shown below:
create or replace function store_data(disciplineid in char,
NoOfQuestions in number)
is
cur_out sys_refcursor;
begin
open cur_out for
select getguid() tmp,
QuestionNo,Disciplineid
from tbliffcoQuestionmaster
where (DisciplineId=discipline1 AND rownum <= disc1_NoOfQuestions)
order by tmp ;
///now it should insert records.
end;