title: JAVA jdbc Eclipse SQLException
body: <p>I was trying to add details to table but it showing some SQL error</p>
  
  <p>Query is:</p>
  
  <pre><code>t=st1.executeUpdate("insert into stdetails(regno,nam,cid,gender,HouseName,place,guardian,phone,photo,did,Emailid,sem) values("+  reg+",'"+ n +"',"+ c +",'"+g+"','"+ h+"','"+p+"','"+ guar +"','"+ph+"','"+pic+"',"+d+",'"+e+"',"+s+"");
  </code></pre>
  
  <p>Error is</p>
  
  <blockquote>
    <p>You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line  1  </p>
  </blockquote>