number(6,2) 插入0.00的时候数据库中就显示0.00,而不是0
现在效果是插入之后显示的是0,小数位后面的0都被去掉了,插入的时候是以什么格式插入?
现在效果是插入之后显示的是0,小数位后面的0都被去掉了,插入的时候是以什么格式插入?
解决方案 »
- delete语句不会了,来帮我看看
- java调用oracle的包经常报ORA-06508: PL/SQL: could not find program unit being called
- Oracle Form builder 的 List Item問題
- 一个简单的‘存储过程’问题
- 一个查询的问题,请问如何做才可以实现?
- (谢谢给位)如何保存新创建的表的内容?急急!
- sqlserver数据导入到oracle后无法访问?
- 安装出错,OCS4J.properties没有,急,在线等
- 急,求助,解决马上结贴,100分,为什么我的job_queue_process进程数老是没法修改?
- 生产环境上Oracle 11G alert log里面总是报 TNS-12535: TNS:operation timed out的信息
- 紧急求助,关于oracle存储过程传入字符串数组参数的问题。
- Oracle查询中使用in提示ORA-01722: 无效数字
-- 请看示例:
create public synonym T for scott.T表已创建。已用时间: 00: 00: 00.06
scott@SZTYORA> insert into t(vnum) values(0);已创建 1 行。已用时间: 00: 00: 00.00
scott@SZTYORA> select * from t; VNUM
----------
0已用时间: 00: 00: 00.01
scott@SZTYORA> col vnum for 99.99
scott@SZTYORA> l
1* select * from t
scott@SZTYORA> / VNUM
------
.00已用时间: 00: 00: 00.01
scott@SZTYORA> col vnum for 90.99
scott@SZTYORA> l
1* select * from t
scott@SZTYORA> / VNUM
------
0.00已用时间: 00: 00: 00.00
create public synonym T for scott.T表已创建。已用时间: 00: 00: 00.04scott@SZTYORA> insert into t values(0,0);已创建 1 行。已用时间: 00: 00: 00.00
scott@SZTYORA> insert into t values(0.38,1);已创建 1 行。已用时间: 00: 00: 00.00
scott@SZTYORA> insert into t values(1.48,5);已创建 1 行。已用时间: 00: 00: 00.01
scott@SZTYORA> select * from t; COL1 COL2
---------- ----------
0 0
.38 1
1.48 5已用时间: 00: 00: 00.01
scott@SZTYORA> commit;提交完成。已用时间: 00: 00: 00.01
scott@SZTYORA> select col1, col2, vsize(col1) v1, vsize(col2) v2 from t; COL1 COL2 V1 V2
---------- ---------- ---------- ----------
0 0 1 1
.38 1 2 2
1.48 5 3 2已用时间: 00: 00: 00.01
1* select col1, col2, vsize(col1) v1, vsize(col2) v2, vsize(col2), dump(col1) d1, dump(col2) d2 from t
scott@SZTYORA> / COL1 COL2 V1 V2 VSIZE(COL2) D1 D2
---------- ---------- ---------- ---------- ----------- ------------------------------ ------------------------------
0 0 1 1 1 Typ=2 Len=1: 128 Typ=2 Len=1: 128
.38 1 2 2 2 Typ=2 Len=2: 192,39 Typ=2 Len=2: 193,2
1.48 5 3 2 2 Typ=2 Len=3: 193,2,49 Typ=2 Len=2: 193,6
9788.48 555666 4 4 4 Typ=2 Len=4: 194,98,89,49 Typ=2 Len=4: 195,56,57,67已用时间: 00: 00: 00.01