1.

AUTO_INCREMENT columns must be NOT NULL.(a) True(b) FalseThis question was posed to me at a job interview.This intriguing question comes from Choosing Data Types in chapter Data Types of MySQL

Answer»

Correct answer is (a) True

The best EXPLANATION: The ‘AUTO_INCREMENT’ columns must be NOT NULL. If the NOT NULL is omitted, MySQL ADDS it automatically. AUTO_INCREMENT column VALUES BEGIN with 1 and increase monotonically after it.



Discussion

No Comment Found

Related InterviewSolutions