|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
AT&T devCentral & BlackBerry(r) Webcast Series: BlackBerry and GPS -Build Location Awareness into your BlackBerry Applications, July 10th-1:00PM EST. Register Today!
|
|
#1
|
|||
|
|||
|
my friend is facing a problem and as i haven't done much work in oracle so thought to post question here.... these are her words:
i have to store a phone number in database and i declared it as "phone number(20,0)", but the problem is that whenever a number having width of more than 15 digits is stored oracle converts the number in exponent and stores so when i retrieve i get first 15 digits correct and after that all 0s. one option is to store phone number as a string but i dun want to do it until n unless its the only way out......so is there ne way of storing the number of size 20 without it being converted to exponent??? |
|
#2
|
||||
|
||||
|
Maybe you should try storing it in a CHAR or VARCHAR field instead?
|
|
#3
|
|||
|
|||
|
Re: Storing large numbers in oracle
Quote:
I have done a lot of work with Oracle and I find this VERY hard to believe, it's probably the way it is being formatted when she displays it. |
|
#4
|
|||
|
|||
|
Uh, I just had a 2 minute play, with this code:
PHP Code:
So it looks like there's no problem with Oracle's handling of large numbers. Perhaps it's the mechanism you're using to read out the data? |
![]() |
| Viewing: Dev Shed Forums > Databases > Database Management > Storing large numbers in oracle |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|