Skip to content

Instantly share code, notes, and snippets.

@0xh3x
Created December 10, 2010 10:27
Show Gist options
  • Save 0xh3x/736061 to your computer and use it in GitHub Desktop.
Save 0xh3x/736061 to your computer and use it in GitHub Desktop.
DECLARE
TYPE rc IS REF CURSOR;
l_rc rc;
l_dummy all_objects.object_name%TYPE;
l_start number DEFAULT dbms_utility.get_time;
BEGIN
FOR i IN 1 .. 1000
LOOP
OPEN l_rc FOR
'select object_name
from all_objects
where object_id = :b'
USING i;
FETCH l_rc INTO l_dummy;
CLOSE l_rc;
END LOOP;
dbms_output.put_line(ROUND((dbms_utility.get_time-l_start)/100, 2) ||' წამი...' );
END;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment