Home » MYSQL » Using Sequences » Question
  1. Suppose the last row has the AUTO_INCREMENT column value 32. Suppose a new row is added by setting AUTO_INCREMENT value equal to 100. The next row added will have value _____________.
    1. 100
    2. 32
    3. 101
    4. 33
    5. None of these
Correct Option: C

If the new value is larger than the current next sequence number, then the sequence is reset to continue with the next value after that for the following rows. In this way, “bumping up” the counter is done.



Your comments will be displayed only after manual approval.