1. 如果不指定
number的长度,或指定长度n>18
id number not null,转换为java类时,为BigDecimal类型
id number(n) not null,转换为java类时,为BigDecimal类型
2. 如果number的长度在10 <= n <= 18
id number(n) not null,转换为java类时,为Long类型
3. 如果number的长度在1 <= n <= 9
id number(n) not null,转换为java类时,为Integer类型
Number(p , s),声明一个定点数,p(precision)为精度,s(scale)表示小数点右边的数字个数,精度最大值为38,scale的取值范围为-84到127
Number(p ),声明一个整数,相当于Number(p, 0)
Number(1)那就是一位的整数啦,用int类型就可以