How do I set the initial value for an \"id\" column in a MySQL table that start from 1001?
I want to do an insert \"INSERT INTO users (name, email) VALUES (\'{
\"INSERT INTO users (name, email) VALUES (\'{
With CREATE TABLE statement
CREATE TABLE my_table ( id INT UNSIGNED NOT NULL AUTO_INCREMENT, name VARCHAR(100) NOT NULL, PRIMARY KEY (id) ) AUTO_INCREMENT = 100;
or with ALTER TABLE statement
ALTER TABLE my_table AUTO_INCREMENT = 200;