title: Inserting a serial type field data in postgresql using java
body: <p>This is my code which is not working</p>
  
  <pre><code>    String sql="insert into user_master(User_Id,'First_Name','Last_Name','Address','City','Country','Email_Id',Cell_Number) values(DEFAULT,'"+fname+"','"+lname+"','"+address+"','"+city+"','"+country+"','"+email+"',"+cellno+")";
  </code></pre>
  
  <p>This one is working fine</p>
  
  <pre><code>    String sql="insert into user_master values(1,'"+fname+"','"+lname+"','"+address+"','"+city+"','"+country+"','"+email+"',"+cellno+")";
  </code></pre>
  
  <p>But I don't want to increment id every time, I have already used serial type as i specified. But with DEFAULT it's not working.</p>
  
  <p>Any idea?</p>