* SQL & PL/SQL type
- floating-point number literals
> 25f, +6.34F, 0.5d, -1D
> binary_float_nan, binary_float_infinity
> binary_double_nan, binary_double_infinity
- the special values: INF, -INF, NaN
- condition: is [not] nan
is [not] infinite
* closed arithmetic operations
select 100/0 from dual; --> ORA-01476: divisor is equal to zero
select 100/0f from dual; --> Inf
* transparent rounding: rounding to the nearist binary
select 10/3 from dual;
select 10/3f from dual;
select 10d/3 from dual;
# 앞으로 수업 편의를 위해 p 프로시저 정의
create or replace procedure p (a varchar2)
is
begin
dbms_output.put_line(a);
end;
/
show errors
'Oracle > PL/SQL' 카테고리의 다른 글
15일차 # 2-25: Bind variables (0) | 2012.04.24 |
---|---|
15일차 # 2-24: Boolean (0) | 2012.04.24 |
15일차 # 2-14: PL/SQL Scalar Data Types (0) | 2012.04.24 |
15일차 # 2-11: Guidelines for Declaring and Initializing PL/SQL Variables (0) | 2012.04.24 |
15일차 # 2-9: 변수 타입 (0) | 2012.04.24 |