This preview shows pages 1–2. Sign up to view the full content.
This preview has intentionally blurred sections. Sign up to view the full version.View Full Document
Unformatted text preview: CREATE OR REPLACE PROCEDURE raise_demo ( inval NUMBER) IS evenno EXCEPTION oddno EXCEPTION BEGIN IF MOD(inval, 2) = 1 THEN RAISE oddno ELSE RAISE evenno END IF EXCEPTION WHEN evenno THEN dbms_output.put_line(TO_CHAR(inval) || ' is an even number') WHEN oddno THEN dbms_output.put_line(TO_CHAR(inval) || ' is an odd number') END raise_demo Sheet1 Page 2 /...
View Full Document
This note was uploaded on 07/15/2011 for the course ECO 2023 taught by Professor Mr.raza during the Summer '10 term at FAU.
- Summer '10