日期:2014-05-17  浏览次数:20839 次

number类型问题
为什么number(16,2)不能存储99999999999999.99  
  number(15,2)能存储9999999999999.99
操作15位不能按正常的概念理解 ,不知道什么原因

------解决方案--------------------
SQL code
create table test(f number(16,2));
insert into test values(99999999999999.99);

------解决方案--------------------
不是表的问题
SQL code
select 99999999999999.99 as f1,9999999999999.99 as f2 from dual
/*
F1    F2
100000000000000    9999999999999.99
*/