If your table has already been created with an auto-increment. so you can use
ALTER TABLE tbl AUTO_INCREMENT = 1000;
otherwise put the AUTO_INCREMENT = 1000;
in your CREATE TABLE
it goes before the final
);
More Related Contents:
- How to properly create composite primary keys – MYSQL
- Is there a REAL performance difference between INT and VARCHAR primary keys?
- difference between primary key and unique key
- Insert auto increment primary key to existing table
- Difference between Key, Primary Key, Unique Key and Index in MySQL
- auto increment primary leaving gaps in counting
- Remove Primary Key in MySQL
- ALTER TABLE to add a composite primary key
- MySQL: #1075 – Incorrect table definition; autoincrement vs another key?
- MySQL InnoDB: autoincrement non-primary key
- Strings as Primary Keys in MYSQL Database [closed]
- MySQL – Meaning of “PRIMARY KEY”, “UNIQUE KEY” and “KEY” when used together while creating a table
- Multi-Column Primary Key in MySQL 5
- Composite Primary Key performance drawback in MySQL
- make an ID in a mysql table auto_increment (after the fact)
- Cakephp Career Database Design
- Write the function using plsql [closed]
- Can’t connect to local MySQL server through socket ‘/var/mysql/mysql.sock’ (38)
- How do you join on the same table, twice, in mysql?
- Throw an error preventing a table update in a MySQL trigger
- MySQL error 1064 syntax but everything seems fine
- How to run SQL script in MySQL?
- Removing MySQL 5.7 Completely [closed]
- How to optimize COUNT(*) performance on InnoDB by using index
- script to convert mysql dump sql file into format that can be imported into sqlite3 db
- MySQL Stored Procedures not working with SELECT (basic question)
- MySQL – Select from a list of numbers those without a counterpart in the id field of a table
- Updating table in trigger after update on the same table
- MySQL: set field default value to other column
- Deleting a row based on the max value