Set the auto increment field to NULL or 0 if you want it to be auto magically assigned…
More Related Contents:
- How to do a batch insert in MySQL
- How do I get the ID of multiple inserted rows in MySQL?
- ‘IF’ in ‘SELECT’ statement – choose output value based on column values
- 1052: Column ‘id’ in field list is ambiguous
- How to set initial value and auto increment in MySQL?
- Count the occurrences of DISTINCT values
- What’s faster, SELECT DISTINCT or GROUP BY in MySQL?
- Can you access the auto increment value in MySQL within one statement?
- Add Auto-Increment ID to existing table?
- Cast int to varchar
- How to copy a row and insert in same table with a autoincrement field in MySQL?
- MySQL Error 1264: out of range value for column
- Import SQL file into mysql
- How to skip certain database tables with mysqldump?
- “where 1=1” statement [duplicate]
- MySQL INSERT INTO … VALUES and SELECT
- MySQL error 1241: Operand should contain 1 column(s)
- How to set a MySQL row to READ-ONLY?
- MySQL: LAST_INSERT_ID() returns 0
- How does MySQL Auto Increment work?
- Using reserved words in column names
- Calculating a Moving Average MySQL?
- What are practical differences between `REPLACE` and `INSERT … ON DUPLICATE KEY UPDATE` in MySQL?
- Strings as Primary Keys in MYSQL Database [closed]
- MySQL : ERROR 1215 (HY000): Cannot add foreign key constraint
- What is the difference between SQL and MySQL? [closed]
- mysql Failed to read auto-increment value from storage engine
- Optimistic locking in MySQL
- Insert and set value with max()+1 problems
- mySQL SELECT upcoming birthdays