title: How to add an auto increment column in java?
body: <p>I want to add the database from my jform and there's a column which will be auto incremented, like when i click done, the data will be inserted and a column <code>receipt_no</code> will have a value 1. Next time I click done then this value should be 2 and so on.</p>
  
  <p>So the problem is, i have created a table with receipt_no as the primary key and auto increment, so what should be my query in java, to add the data correctly in the table. </p>
  
  <pre><code>String sql = "insert into table_name values('"++"',...)";
  </code></pre>
  
  <p>Can you help me in this query?</p>