1. Home
  2. Docs
  3. Oracle 19c PL/SQL
  4. 2 Control Statements

2 Control Statements

Basic loop is the simplest form of loop construct in PL/SQL and hence also called as Simple loop. It encloses a sequence of statements between the keywords LOOP and END LOOP. It allows execution of its statements at least once. To keep the loop in finite state the EXIT statement is used.

The EXIT condition can be at the top of the loop or at the end of the loop as per convenience. Depending upon the circumstance we can make use of this loop as Pre-tested or Post-tested loop construct.


Was this article helpful to you? Yes No

How can we help?