Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: Maximum fetch in a cursor
In article <7soghq$2r0$1_at_newsmaster.pathcom.com>,
"John Chiu" <johnc_at_relsol.com> wrote:
> Please post your code. It will help us to analyse your problem.
>
> John Chiu
>
>
set serveroutput on;
DECLARE
v_imin number :=0; v_isec number :=0; v_cookie varchar2(50);
v_isession number :=1; v_row varchar2(50) :='junk'; v_ihr number :=0; v_web_date varchar2(13) :='12-12-99';
CURSOR c1 IS
SELECT web_date,ihr,imin,isec,cookie,ROWID FROM weblogpl order by cookie,to_date(web_date);
BEGIN OPEN c1;
if ( v_cookie = v_last_cookie) then
{do something }
else
{do something }
end if;
update weblogpl set isession = v_isession where v_row=rowid;
END LOOP;
commit;
close c1;
END;
/
Sent via Deja.com http://www.deja.com/
Before you buy.
Received on Tue Sep 28 1999 - 11:47:58 CDT
![]() |
![]() |