1
我創建Oracle中的功能如下圖所示:如何從asp.net調用pl/sql函數?
我需要從我的asp.net頁面中調用它... 我該怎麼辦呢?
create or replace function fun_GeneratePaper(strDisciplineId IN CHAR,
iNoOfQuestions IN integer)
return sys_refcursor as
r1 sys_refcursor;
begin open r1 for select getguid() tmp,
QuestionNo,QuestionText,
Option1,Option2,
Option3,Option4,
Correctanswer,Disciplineid
from tbliffcoQuestionmaster
where DisciplineId=strDisciplineId
AND rownum <= iNoOfQuestions ;
return(r1);
end;