1.

The number of rows in the table is 10. Suppose all rows are deleted. The new row starts with sequence number _____________(a) 11(b) 1(c) 100(d) 101The question was asked in semester exam.I want to ask this question from Working with Sequences topic in division Data Types of MySQL

Answer»

Correct choice is (b) 1

To elaborate: When the row containing the LARGEST value in an AUTO_INCREMENT column is deleted, that value is REUSED the next time a NEW value is GENERATED. In this case the SEQUENCE number is 1.



Discussion

No Comment Found

Related InterviewSolutions