Google News
logo
MySQL - Quiz(MCQ)
What is the best datatype for a column that is expected to store values up to 2 million?
A)
TINYINT
B)
BIGINT
C)
SMALLINT
D)
MEDIUMINT

Correct Answer :   BIGINT


Explanation : The different numeric types used in MySQL are used to store a different range of values. To store values of the order of a million, the MEDIUMINT or BIGINT datatype is sufficient.

Advertisement