为什么格式化后我在NUMBER列中获得#### Oracle? [英] Why do i get #### in the NUMBER column after format... Oracle?

查看:152
本文介绍了为什么格式化后我在NUMBER列中获得#### Oracle?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有两个有问题的列: Fee NUMBER类型, AdjFee 也NUMBER。
之后

 列费用格式a5; 
从访问中选择费用ID
;

我得到

 费用编号smth 
#### 123 klkl
#### 654 rfjgr


您可以调整希望SQL * Plus用于显示数字数据的位数,就像您调整用于显示字符数据的字符数一样。就像

 列费用格式999999999.99 

会告诉SQL * Plus在小数点前显示最多9位数,小数点后显示两位数。你可以调整,当然,如果你知道你的费用会更小(或更大)。


I have two problematic columns: Fee NUMBER type, AdjFee also NUMBER. After

column Fee format a5;
select Fee ID smth
from Visit;

i get

Fee    ID   smth
####  123  klkl
####  654  rfjgr

解决方案

You can adjust the number of digits you want SQL*Plus to use to display the numeric data just as you adjust the number of characters used to display character data. Something like

column fee format 999999999.99

will tell SQL*Plus to display up to 9 digits before the decimal point and two after the decimal point. You can adjust that, of course, if you know your fees are going to be smaller (or larger).

这篇关于为什么格式化后我在NUMBER列中获得#### Oracle?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆