DECLARE--Created by xsb on 2005-08-17 For:演示游标的打开机制I INTEGER;T NUMBER;C SYS_REFCURSOR;BEGINT := DBMS_UTILITY.GET_TIME;OPEN C FOR('SELECT 1 FROM dba_objects a GROUP BY a.owner');DBMS_OUTPUT.PUT_LINE('游标打开时间:' || (DBMS_UTILITY.GET_TIME - T));T := DBMS_UTILITY.GET_TIME;FETCH C INTO I;DBMS_OUTPUT.PUT_LINE('第一次fetch时间:' || (DBMS_UTILITY.GET_TIME - T));T := DBMS_UTILITY.GET_TIME;FETCH C INTO I;DBMS_OUTPUT.PUT_LINE('第二次fetch时间:' || (DBMS_UTILITY.GET_TIME - T));T := DBMS_UTILITY.GET_TIME;FETCH C INTO I;DBMS_OUTPUT.PUT_LINE('第三次fetch时间:' || (DBMS_UTILITY.GET_TIME - T));close c;END;