29.06.2013 Views

Elemente de PL/SQL [pdf] - Baze de date

Elemente de PL/SQL [pdf] - Baze de date

Elemente de PL/SQL [pdf] - Baze de date

SHOW MORE
SHOW LESS

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 />

v_punctaj NUMBER(4);<br />

TYPE t_stu<strong>de</strong>nt IS RECORD<br />

(matr NUMBER(4) NOT NULL := 1234,<br />

nume stud.nume%type,<br />

punctaj v_punctaj%type,<br />

data DATE DEFAULT SYSDATE);<br />

v_stu<strong>de</strong>nt t_stu<strong>de</strong>nt;<br />

BEGIN<br />

v_stu<strong>de</strong>nt.matr := v_stu<strong>de</strong>nt.matr + 1;<br />

v_stu<strong>de</strong>nt.nume := 'MARCEL';<br />

v_stu<strong>de</strong>nt.punctaj := 1400;<br />

. . .<br />

END;<br />

F. Radulescu. Curs: <strong>Baze</strong> <strong>de</strong> <strong>date</strong> 42

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!