Why do i get #### in the NUMBER column after format... Oracle?

CHEBURASHKA picture CHEBURASHKA · Jun 24, 2013 · Viewed 47.7k times · Source

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

Answer

Justin Cave picture Justin Cave · Jun 24, 2013

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).