Multiple choice technology programming languages

Examine the following PL/SQL block of code: ... DELETE FROM orders WHERE pay_stat = ‘Overdue’; IF SQL%ROWCOUNT > 5 THEN RAISE out_of_bounds; END IF; ... What value is returned after the statement is run and the DELETE statement returned no rows?

  1. 0

  2. 1

  3. 5

  4. true

  5. false

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

The SQL%ROWCOUNT attribute returns the number of rows affected by the last SQL statement. If the DELETE statement did not find any matching rows to delete, SQL%ROWCOUNT returns 0.