1.

In MyISAM tables, when a table is emptied with the TRUNCATE TABLE, the counter begins at _____________(a) 0(b) 1(c) -1(d) arbitraryI got this question in examination.I'd like to ask this question from Working with Sequences topic in section Data Types of MySQL

Answer»

Correct OPTION is (b) 1

Explanation: In the MYISAM TABLES, whenever a table is truncated with the ‘TRUNCATE TABLE’ clause, the ‘AUTO_INCREMENT’ counter again GETS reset. It begins with the value ONE and increases monotonically.



Discussion

No Comment Found

Related InterviewSolutions