1.

If a column is expected to store values up to 2 million, the best datatype for it is _____________(a) SMALLINT(b) TINYINT(c) MEDIUMINT(d) BIGINTI got this question by my school principal while I was bunking the class.The query is from Choosing Data Types topic in portion Data Types of MySQL

Answer»

The correct CHOICE is (d) BIGINT

Explanation: The different numeric TYPES used in MYSQL are used to store different RANGE of VALUES. To store values of the order of a million, the MEDIUMINT or BIGINT datatype is sufficient.



Discussion

No Comment Found

Related InterviewSolutions