Home » MYSQL » Using Sequences » Question
  1. In MyISAM tables, when a table is emptied with the TRUNCATE TABLE, the counter begins at _____________.
    1. -1
    2. 0
    3. arbitrary
    4. 1
    5. None of these
Correct Option: D

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.



Your comments will be displayed only after manual approval.