title: How to skip primary key in sqlSave() command?
body: <p>I am trying to insert a data.frame in the MySQL database using RODBC. The command I am using is the following:</p>
  
  <pre><code>sqlSave(channel,dbData,tablename='table_name', append=TRUE,safer=TRUE,fast=FALSE,verbose=TRUE)
  </code></pre>
  
  <p>Now the table in which I am trying to insert the data has a primary key which is auto-increment. My table has total of 7 columns including the primary key. In my data frame, I have 6 columns because I don't want to insert the PK myself. However when I run the command, I get the following error:</p>
  
  <pre><code>23000 1062 [MySQL][ODBC 5.1 Driver][mysqld-5.5.13]Duplicate entry '1' for key 'PRIMARY'
  </code></pre>
  
  <p>From the above error, I understand that it is trying to insert '1' as the primary key when there is already a record with 1 as its PK. Any idea how I can avoid this using sqlSave()?</p>
  
  <p>Thanks in advance.</p>