Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Terminating loop after 5 seconds

576930Dec 13 2011 — edited Dec 13 2011
Hi forum,
I want to put an additional condition to terminate below LOOP after 5 seconds, is there any such function available?
Thank you.

LOOP
SELECT COUNT(1)
INTO v_tmp_cnt_ac
FROM accountdata;
EXIT WHEN v_cnt = v_tmp_cnt_ac;
END LOOP;
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 10 2012
Added on Dec 13 2011
8 comments
2,315 views