-- SIGNED UNSIGNED
-- Min Max Min Max
TINYINT -128 127 0 255
SMALLINT -32767 32767 0 65535
MEDIUMINT -8388608 388608 0 16777215
INT -2147483648 2147483647 0 4294967295
INTEGER -2147483648 2147483647 0 4294967295
BIGINT -9223372036854775808 9223372036854775808 0 18446744073709551615
For MySQL database:
In BIGINT(8), the number 8 represents how the data will be displayed. It does not affect the storage. The number is used to display width.
BIGINT takes 8 bytes i.e. 64 bits. The signed range is -9223372036854775808 to 9223372036854775807 and unsigned range takes positive value. The range of unsigned is 0 to 18446744073709551615.