Mega Code Archive

 
Categories / Oracle PLSQL Tutorial / PL SQL Programming
 

Examples of Integer and Real Literals

SQL> SQL> declare   2      v_int1 BINARY_INTEGER :=5;  -- integer   3      v_int2 BINARY_INTEGER :=-5; -- integer   4      v_int3 BINARY_INTEGER :=0;  -- integer   5      v_int4 BINARY_INTEGER :=+5; -- integer   6   7      v_real1 NUMBER :=1.0;       -- real   8      v_real2 NUMBER :=1.;        -- real   9      v_real3 NUMBER :=-7.113;    -- real  10      v_real4 NUMBER :=0.2;       -- real  11      v_real5 NUMBER :=.3;        -- real  12      v_real6 NUMBER :=0.1;       -- real  13      v_real7 NUMBER :=2/6;       -- real  14  begin  15     NULL;  16  end;  17  / PL/SQL procedure successfully completed. SQL>