I’m working on a MySQL database and need to configure an auto-incrementing primary key column to begin counting from a specific number instead of the default 1.
Basically, I want my user_id column to start generating values from 2000 onwards. When I run queries like:
INSERT INTO customers (username, phone_number) VALUES ('john_doe', '[email protected]');
I don’t want to manually specify the user_id value each time. The database should automatically assign 2000 for the first record, 2001 for the second, and so on.
What’s the correct MySQL syntax to configure this auto-increment starting point? I’ve tried a few approaches but haven’t gotten the desired results yet.