Click here to Skip to main content
15,895,841 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
MY table data type is NUMBER(20,6) in a text box.

I am using the number field so I'm putting the text box max length to 27.
When I input a 27 digit number it is not stored in the data base.

I need your suggession.

Thanks

rpkaran
Posted
Updated 20-Aug-10 3:26am
v2
Comments
Dalek Dave 20-Aug-10 9:26am    
Edited for Clarity.

1 solution

Is your database Oracle?

when you declare a variable as NUMBER(p,s), it signifies the number having precision p and scale s.

So number(20,6) denotes that you can store a number like 9999999999999.999999

This is probably not what you want? You probably want number(27, 0) - so 27 length with no numbers after the decimal

Read up on Precision and Scale.
 
Share this answer
 
v2
Comments
Dalek Dave 20-Aug-10 9:26am    
Good answer.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900