Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

modify number data type oracle

Status
Not open for further replies.

akutty

IS-IT--Management
Jul 7, 2004
31
GB

column magin is currently number (7,2)
alter table t_volume modify margin number (7,3)

gives an error

The following error has occurred:

ORA-01440: column to be modified must be empty to decrease precision or scale




Details:
ORA-01440: column to be modified must be empty to decrease precision or scale



However I am trying to increase the value to 3 , any ideas how to resolv ethis?

regards
Anil
 
Hello,

what your system says is correct;
actually you are decreasing the number range left of the decimal point.
The '7' in 'number(7,2) is the overall length of the number.

hope this helps

 
oh I missed that...thanks a lot. :)

rgds
Anil
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top