What error did you get? Did you try using NULL for the id, or leaving the
auto_increment column out of the insert (insert into table (PartNumber, ...,
StatusQtyWorked) values (...))?

> Hello,
> When I submit data it will not submit data into the
> database unless I put some kind of number in the ID
> field.  This is not supose to be.  Here is what my
> schema looks like.
>
> CREATE TABLE Parts(
> PartNumber INT(6) NOT NULL,
> QtyOnHand INT(2) NOT NULL,
> QtyOnOrder INT(2) NOT NULL,
> DateNextQtyComplete VARCHAR(10) NOT NULL,
> StatusQtyWorked VARCHAR(10) NOT NULL,
> ID INT(5) NOT NULL AUTO_INCREMENT,
> PRIMARY KEY (ID)
> );
> Does anyone know why the auto_increment doesn't work?
> I'm using mysql Ver 8.0 Distrib 3.22.32, for
> pc-linux-gnu on i686


---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to