1.

The AUTO_INCREMENT column attribute is best used with which type?(a) FLOAT(b) INT(c) CHARACTER(d) DOUBLEI had been asked this question in semester exam.My question is taken from Choosing Data Types in section Data Types of MySQL

Answer»

Correct answer is (b) INT

The explanation: The AUTO_INCREMENT is a COLUMN ATTRIBUTE and it is best USED with the INTEGER datatypes. It automatically assigns monotonically increasing VALUES to the AUTO_INCREMENT columns.



Discussion

No Comment Found

Related InterviewSolutions