11.07.2015 Views

Capitolul IV Limbajul PL/SQL

Capitolul IV Limbajul PL/SQL

Capitolul IV Limbajul PL/SQL

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.

65END;/LiteraliExemple:-- Declaratii de variabilenumber1 <strong>PL</strong>S_INTEGER := 32000; -- literal numeric, val întreagănumber2 NUMBER(8,3);BEGINnumber2 := 3.125346e3; -- literal numericnumber2 := -8300.00; -- literal numericnumber2 := -14; -- literal numericEND;char1 VARCHAR2(1) := 'x'; -- literal caracterchar2 VARCHAR2(1);BEGINchar2 := '5'; -- literal caracterEND;/-- Declaratii de variabilestring1 VARCHAR2(1000);string2 VARCHAR2(32767);BEGINstring1 := '555-111-2323';-- daca un sir contine apostrof, acesta se dubleazastring2 := 'Here''s an example of two single quotation marks.';END;/-- Declaratii de variabilegata BOOLEAN := TRUE; -- BOOLEAN literalcomplet BOOLEAN;true_or_false BOOLEAN;BEGINgata := FALSE; -- literal BOOLEAN

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

Saved successfully!

Ooh no, something went wrong!