re: insert not working with auto_increment column

2006-06-13 Thread Rob Desbois
If you are going to specify values for all columns in your insert, you should put NULL as the value for an AUTO_INCREMENT column, e.g. mysql insert into SalesSupData values (NULL,2,2,'test',140); My preferred way however is to put the column names and just miss out the auto_increment column:

Re: insert not working with auto_increment column

2006-06-13 Thread Digvijoy Chatterjee
On 6/13/06, Rob Desbois [EMAIL PROTECTED] wrote: If you are going to specify values for all columns in your insert, you should put NULL as the value for an AUTO_INCREMENT column, e.g. mysql insert into SalesSupData values (NULL,2,2,'test',140); My preferred way however is to put the column