Use this:
ALTER TABLE users AUTO_INCREMENT=1001;
or if you haven’t already added an id column, also add it
ALTER TABLE users ADD id INT UNSIGNED NOT NULL AUTO_INCREMENT, ADD INDEX (id);
Related Posts:
- Get the new record primary key ID from MySQL insert query?
- How to make MySQL table primary key auto increment with some prefix
- “INSERT IGNORE” vs “INSERT … ON DUPLICATE KEY UPDATE”
- MySQL Every derived table must have its own alias
- MySQL Error 1264: out of range value for column
- LAST_INSERT_ID() MySQL
- How to join two tables by multiple columns in SQL?
- Object of class DateTime could not be converted to string
- MySQL date formats – difficulty Inserting a date
- How to copy a row and insert in same table with a autoincrement field in MySQL?
- Warning: session_start(): Cannot send session cookie – headers already sent by (output started at [duplicate]
- How to do a batch insert in MySQL
- SQL – IF EXISTS UPDATE ELSE INSERT INTO
- You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ””)’ at line 2
- Using prevNext Modx Addon
- :wq! command in vim
- how to set the background color of the status bar during the launching phase [duplicate]
- api-ms-win-crt-runtime-l1-1-0.dll is missing when opening Microsoft Office file [closed]
- When is K 1024 and when is it 1000?
- What is a MIME type?
- Logitech/LGHUB Lua – Loop with break
- are there dictionaries in javascript like python?
- How can I convert MP3 file to a Base64 encoded string? [closed]
- Understanding The Modulus Operator %
- Understanding the main method of python [duplicate]
- Dial pad to get phone number (with Android button images)
- TypeError: only integer scalar arrays can be converted to a scalar index with 1D numpy indices array
- How is the AND/OR operator represented as in Regular Expressions?
- TypeError: only integer scalar arrays can be converted to a scalar index with 1D numpy indices array
- Istio Ingress resulting in “no healthy upstream”
- Why is it not possible to fake an IP address?
- How to open a “-” dashed filename using terminal?
- MySQL Error: : ‘Access denied for user ‘root’@’localhost’
- MySQL Error: : ‘Access denied for user ‘root’@’localhost’
- Substring in excel
- What is a LAMP stack?
- What is a sanity test/check
- What is the difference between POST and PUT in HTTP?
- What is the difference between POST and PUT in HTTP?
- How to find Google’s IP address?
- What exactly is a VBO in OpenGL?
- What and where are the stack and heap?
- ping response “Request timed out.” vs “Destination Host unreachable”
- Authentication versus Authorization
- What is a reverse shell?
- How does npm start work? What all processes are happening in the background?
- What is an instance variable in Java?
- What is the := operator?
- What is tail recursion?
- Discord music bot not working
- What does “:=” mean in Pseudocode? [closed]
- Why am I getting error for apple-touch-icon-precomposed.png
- No results found on kibana -> discover
- What is Xpenology? Is it Linux related thing?
- How to use mysqli_query() in PHP?
- Why do we need virtual functions in C++?
- What is a CSRF token? What is its importance and how does it work?
- Create blank image in Imagemagick
- Official definition of CSCI (Computer Software Configuration Item)
- How could I ping @here in Discord.py?
- Python Math – TypeError: ‘NoneType’ object is not subscriptable
- Access Denied for User ‘root’@’localhost’ (using password: YES) – No Privileges?
- What does %>% mean in R [duplicate]
- super() in Java
- Visual List of iOS Fonts?
- Inserting multiple rows in a single SQL query? [duplicate]
- What is useState() in React?
- TCP vs UDP – What is a TCP connection? [duplicate]
- How do I copy folder with files to another folder in Unix/Linux? [closed]
- ssh : Permission denied (publickey,gssapi-with-mic)
- Eclipse IDE for Java – Full Dark Theme
- Amazon Linux: apt-get: command not found
- Google Calendar API event insert always return 404 “not found” error
- ssh connect Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password)
- What’s the syntax for mod in java
- Unknown column in ‘field list’ error on MySQL Update query
- What does the Java assert keyword do, and when should it be used?
- Unknown column in ‘field list’ error on MySQL Update query
- How to get rid of the “No bootable medium found!” error in Virtual Box? [closed]
- How to log in to phpMyAdmin with WAMP, what is the username and password?
- How do I fix a “Expected Primary-expression before ‘)’ token” error?
- Access Denied for User ‘root’@’localhost’ (using password: YES) – No Privileges?
- Using getline() with file input in C++
- STDERR? What is it? What are its common uses?
- UML Sequence diagram auto-numbering in Visual Paradigm
- Error in “MLSD” command While Connecting FTP to Server [closed]
- ERROR 1045 (28000): Access denied for user ‘root’@’localhost’ (using password: YES)
- Column count doesn’t match value count at row 1
- Java default constructor
- How do I make a delay in Java?
- Casting variables in Java
- Handling file renames in Git
- Undefined function mysql_connect()
- A JNI error has occurred, please check your installation and try again in Eclipse x86 Windows 8.1
- PermissionError: [Errno 13] in Python
- ERROR 1045 (28000): Access denied for user ‘root’@’localhost’ (using password: YES)
- MySQL column count doesn’t match value count at row 1 [closed]
- Why are there two ways to unstage a file in Git?
- MySQL string replace
- Cannot add or update a child row: a foreign key constraint fails