我有一个名为 testtransaction 的表,它存储 pervQuestionId 和 NextQuestionId... 如何通过游标在该表中插入记录?有一些东西 cursoe.getnext() ......我如何实现它?我的代码如下所示:
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;