How to start auto increment from a specific point in MySQL - MySQL Developer Tutorial

preview_player
Показать описание
How to start auto increment from a specific point in MySQL explains when we create a column in table with Auto Increment in MySQL, it start the Auto Increment value from 1 and then keep increment by one on each new insert. Let's say if you want to start the Auto Increment with some specific number, you can do that.

link to scripts used in MySQL Developer Tutorial / MariaDB developer Tutorial

MySQL Tutorial for Beginners
MySQL Development Tutorial
MySQL Tutorial for developers
MySQL Development Training
MySQL training for developers
MySQL Workbench Tutorial
MySQL DBA Certification Training
MySQL DBA Tutorial Step by Step
MySQL DBA Training online free
MySQL Real Time DBA Tutorial
MySQL Administration Course step by Step
TechbrothersIT Tutorials
Рекомендации по теме
Комментарии
Автор

Hello sir can you generate an ID from 1 every day and increase that ID sequentially but when new day start or date change id again start from 1 and so on?

scjnankana
Автор

Hi, I need that the values for a ColumnID, which is a Primary Key, to start at 100 and increment by 5. How can I do that in MySQL? Hope you could help me. Thanks.

zirelyleon