|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
|
|
#1
|
|||
|
|||
|
I have a table where I place a large integer: for example: 200007014134747 Now it looks algood, until 24hours plus, when I check it it is listed at some -1003045025 (number varies but always this length of digits. I have checked and nothing external is changing this field. Is their some bug in MySQL which I am unaware?
thanks |
|
#2
|
|||
|
|||
|
What's the column type that you are storing the integer in?
|
|
#3
|
|||
|
|||
|
You may not have declared your column type properly.
Declare it as BIGINT 10 UNSIGNED You M wasn't big enough or too big for mySQLL or more probably you declared it as signed with not enough digits and the next time you called it up, mySQL converted it to its modulo value for the number of digits you specified See: http://www.mysql.com/documentation/...l#Numeric_types M is the number of digits BIGINT[(M)] [UNSIGNED] [ZEROFILL] A large integer. The signed range is -9223372036854775808 to 9223372036854775807. The unsigned range is 0 to 18446744073709551615. Note that all arithmetic is done using signed BIGINT or DOUBLE values, so you shouldn't use unsigned big integers larger than 9223372036854775807 (63 bits) except with bit functions! Note that -, + and * will use BIGINT arithmetic when both arguments are INTEGER values! This means that if you multiply two big integers (or results from functions that return integers) you may get unexpected results if the result is larger than 9223372036854775807. jcbell@magnolia.net ------------------ |
|
#4
|
|||
|
|||
|
I set the field for bigint(20), I did not specify signed or unsigned, though my number is fixed length at 14-digits (i.e. 20000717101812).
|
![]() |
| Viewing: Dev Shed Forums > Databases > MySQL Help > Help, odd field change is occuring |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|