I know BIGINT
can store a 8byte numbers.
I want to store numbers with length 12 (Fixed length). So using INT
is impossible.
If I store a number like153159842655
, How much storage it takes ? Is it always 8byte or depends on number ?
Second question is that is increasing or decreasing length of number affects on performance (Indexing that numbers, Selecting ...) ? This table can have billions records ! I use InnoDB