|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
|||
|
|||
|
Number submitted doesn't match in database
I create the table mainphone int(11), when put 9 digits in, everything is fine. When enter a 10 digit number in the database I get 2147483647 which I think is the range of an int column. Why am I getting this?
Robert |
|
#2
|
|||
|
|||
|
RE: Number submitted doesn't match in database
See:
http://www.mysql.com/doc/en/Column_types.html INT[(M)] [UNSIGNED] [ZEROFILL] A normal-size integer. The signed range is -2147483648 to 2147483647. The unsigned range is 0 to 4294967295. _________________________ There is no int(11). If you anticipate using > 9 digit integers, use the BIGINT column type instead: BIGINT[(M)] [UNSIGNED] [ZEROFILL] A large integer. The signed range is -9223372036854775808 to 9223372036854775807. The unsigned range is 0 to 18446744073709551615. |
![]() |
| Viewing: Codewalkers Forums > Other Technologies > Database Help > Number submitted doesn't match in database |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|
|
|