title: executeUpdate() returns zero despite correct execution
body: <h2>create_PaperBean.java</h2>
  
  <pre class="lang-java prettyprint-override"><code>package Beans;
  
  import java.sql.SQLException;
  import java.sql.Statement;
  import java.util.logging.Level;
  import java.util.logging.Logger;
  
  public class create_paperBean extends org.apache.struts.action.ActionForm {
  
      private String table_name;
  
      public String getTable_name() {
          return table_name;
      }
  
      public void setTable_name(String table_name) {
          this.table_name = table_name;
      }
      public String createDB(){
          String str = "creation_failed";
          try{   
              Statement st = DBConnection.DBConnection.DBConnect();
              int insert = st.executeUpdate("CREATE TABLE "+table_name+"(ques_no int(11) NOT NULL PRIMARy KEY,"
                      + "ques_name varchar(45),ans1 varchar(45),ans2 varchar(45),ans3 varchar(45),"
                      + "ans4 varchar(45),correct_ans varchar(45))");            
              System.out.println(insert);
              if(insert &gt; 0)
                  str = "created";            
          } catch (SQLException ex) {
              Logger.getLogger(create_paperBean.class.getName()).log(Level.SEVERE, null, ex);
          }  
          return str;
      }
  }
  </code></pre>
  
  <p>I'm using struts and when this bean is executed a table is created in the database, but the value of insert is still zero! Therefore I can't proceed to the correct page for further functioning of the web app. What am I doing wrong?</p>