That probably means that your id
is an AUTO_INCREMENT
integer and you’re trying to send a string. You should specify a column list and omit it from your INSERT
.
INSERT INTO workorders (column1, column2) VALUES (?, ?)
More Related Contents:
- “INSERT IGNORE” vs “INSERT … ON DUPLICATE KEY UPDATE”
- MySQL Conditional Insert
- How to do a batch insert in MySQL
- Get the new record primary key ID from MySQL insert query?
- Which is faster: multiple single INSERTs or one multiple-row INSERT?
- LAST_INSERT_ID() MySQL
- SQL – IF EXISTS UPDATE ELSE INSERT INTO
- MySql Table Insert if not exist otherwise update
- Prevent auto increment on MySQL duplicate insert
- MySQL trigger On Insert/Update events
- BULK INSERT in MYSQL
- How do I get the ID of multiple inserted rows in MySQL?
- MySQL trigger to update a field to the value of id
- How to insert data to MySQL with auto-incremented column(field)?
- How to insert values in table with foreign key using MySQL?
- MySQL INSERT INTO … VALUES and SELECT
- MySQL Insert & Joins
- How to add a where clause in a MySQL Insert statement?
- Reserved word in column name – insert into MySQL [duplicate]
- What are practical differences between `REPLACE` and `INSERT … ON DUPLICATE KEY UPDATE` in MySQL?
- MySQL LAST_INSERT_ID() used with multiple records INSERT statement
- Mysql insert into 2 tables
- MySQL – insert data from another table merged with constants
- Insert data into table with result from another select query
- MySQL optimizing INSERT speed being slowed down because of indices
- MySQL: Insert datetime into other datetime field
- MySQL – How to parse a string value to DATETIME format inside an INSERT statement?
- “Unknown column in ‘field list'”, but column does exist
- Is there a way to use ON DUPLICATE KEY to Update all that I wanted to insert?
- Insert and set value with max()+1 problems