title: java - insert row with auto increment field
body: <p>I'm trying to insert a row in table, with an auto-increment field, but i'm getting errors.
  The structure of the table is:</p>
  
  <ul>
  <li>id:auto-increment </li>
  <li>level:text</li>
  <li>concept:text</li>
  </ul>
  
  <p>.</p>
  
  <pre><code>String sql = "INSERT INTO Contents (level,concept) VALUES ('"+string_value1+"','"+string_value2+"')";
  pst = con.prepareStatement(sql);
  pst.execute();
  </code></pre>
  
  <p>in w3c i read that to insert a new record into the table, we will not have to specify a value for the "auto-increment" column (a unique value will be added automatically).</p>
  
  <p>What am i doing wrong?</p>