DROP DATABASE IF EXISTS testdb; CREATE DATABASE testdb; USE testdb; CREATE TABLE testtable ( Id INT UNSIGNED NOT NULL, Counter BIGINT UNSIGNED NOT NULL, PRIMARY KEY (Id) ); INSERT INTO testtable (Id, Counter) VALUES (0, 10000000000000000000); INSERT INTO testtable (Id, Counter) VALUES (1, POWER(2, 64) - 1);