Elemente de PL/SQL [pdf] - Baze de date
Elemente de PL/SQL [pdf] - Baze de date
Elemente de PL/SQL [pdf] - Baze de date
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
EXEM<strong>PL</strong>U<br />
DECLARE<br />
exceptia1 EXCEPTION;<br />
BEGIN<br />
DECLARE -- incepe un subbloc<br />
BEGIN<br />
...<br />
IF ... THEN<br />
RAISE exceptia1;<br />
END IF;<br />
EXCEPTION -- tratare exceptii subbloc<br />
WHEN exceptia1 THEN<br />
-- instructiuni tratare in subbloc<br />
. . . .<br />
RAISE;<br />
END; -- sfarsit subbloc<br />
EXCEPTION<br />
WHEN exceptia1 THEN -- retratare exceptia1 in bloc<br />
...<br />
END;<br />
F. Radulescu. Curs: <strong>Baze</strong> <strong>de</strong> <strong>date</strong> 71