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!

Using "while" loop or something like it

sreeseOct 25 2012 — edited Oct 26 2012
Gurus,

Need to use an inline select to compare against a literal number. I thought I could use a "while" loop for this but get errors. Any alternate suggestions out there?


while (select count(1) from mtl_cycle_count_entries where cycle_count_header_id = crec_purge_cc_by_hdr.cycle_count_header_id) > 0
  loop
     ...
end loop;
Thanks.

Points for helpful or correct answers.
This post has been answered by Billy Verreynne on Oct 25 2012
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 23 2012
Added on Oct 25 2012
6 comments
218 views