Examveda

What does the AUTO_INCREMENT sequences begin at by default?

A. 0

B. 1

C. -1

D. 2

Answer: Option B

Solution (By Examveda Team)

This question is about AUTO_INCREMENT in MySQL, which is a special feature that automatically assigns unique numbers to rows in a table.

Imagine you have a table for storing students, and you want each student to have a unique ID number. You can use AUTO_INCREMENT to make this happen.

The question asks what the starting number for this automatic numbering is by default.

Here are the options:
* Option A: 0 - This is incorrect. AUTO_INCREMENT doesn't start at 0 by default.
* Option B: 1 - This is the correct answer! By default, AUTO_INCREMENT begins at 1.
* Option C: -1 - This is incorrect.
* Option D: 2 - This is incorrect.
So the answer is Option B: 1.

This Question Belongs to MySQL >> MySQL Miscellaneous

Join The Discussion

Related Questions on MySQL Miscellaneous