How does MySQL Auto Increment work?

后端 未结 5 909
星月不相逢
星月不相逢 2020-12-01 21:15

I was just creating a new table using MySQL Query Browser, and noticed there\'s a tick under Auto Increment Column. How does that work?

When adding to the database p

5条回答
  •  無奈伤痛
    2020-12-01 22:11

    When you enable Auto Increment an ID will always get automatically added whenever a new record is made.. Example:

    If you have 1 record with ID 1 in your table and you add a new record, the ID will automatically be 2.

提交回复
热议问题