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 n

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:

insert not working with auto_increment column

2006-06-13 Thread Digvijoy Chatterjee
I have a problem with inserting data into table in Mysql. I have a Auto_increment Column in Table which throws errors when I try to insert into the table. This is table description. mysql> desc SalesSupData; +-+-+--+-+-++ | Field | Type