1.

The best datatype for a column that is expected to store values up to 2 million is _________(a) SMALLINT(b) TINYINT(c) MEDIUMINT(d) BIGINTI had been asked this question in a national level competition.My doubt is from Database Copies topic in portion Nulls and Conditions and Miscellaneous of MySQL

Answer»

The correct choice is (d) BIGINT

The best 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