[ic] Mysql - autoincrement primary number

Jonathan Clark interchange-users@interchange.redhat.com
Tue Mar 12 18:51:00 2002


> I am trying to set  mysql db table, and I want primary key to be
> autincremented every time when I add new record to db table.

Don't set the field in your form. Setting an auto increment field causes
your value to be used instead. For the increment to work, the field should
be null.

Jonathan
Webmaint.