I have the value 9223372036854775807 in a bigint datatype field and am trying to increment the value but it does not increment greater than the above value.
So can someone please suggest me the solution or tell me which datatype should i use that will support me a value greater than 9223372036854775807?
CREATE TABLE `log_counter` (
`log_counter` BIGINT(20) DEFAULT '0'
) ENGINE=MYISAM DEFAULT CHARSET=latin1
that's because this is the maximum number for a signed bigint
change the table so that this column is defined with UNSIGNED and you can then go twice as high, to 18446744073709551615
What does unsigned mean?
it means negative numbers are not permitted
please see http://en.wikipedia.org/wiki/Two's_complement
This topic is now closed. New replies are no longer allowed.