title: Fetch data through column number not column name in JAVA from mysql database?
body: <p>This is printing the values through column name, 
  But I need to print the values through column number, Then how ? Please help.</p>
  
  <p>[Note*** All the record are int type.]</p>
  
  <pre><code>          ResultSet rs2 = stmt.executeQuery(table_retrive)) {
  
                  while (rs2.next()) {
                      int val1 = rs2.getInt("id");
                      int val2 = rs2.getInt("name");
                      int val3 = rs2.getInt("job");
                      System.out.println(id+"   "+name+"    "+job);
  </code></pre>