title: How to insert into sql table from an array of variables in JAVA
body: <p>USING JAVA ECLIPSE
  Actually am having an SQL table of 13 attributes. Into that I want to insert a data stored in a Integer array variable the array name is numbers</p>
  
  <p>So is my way of storing into the sql table correct?</p>
  
  <pre><code>  try {
                  String query="insert into present values (numbers[0],numbers[1],numbers[2],numbers[3],numbers[4],numbers[5],numbers[6],numbers[7],numbers[8],numbers[9],numbers[10],numbers[11],numbers[12],numbers[13])";
                  PreparedStatement pst=connection.prepareStatement(query);
                  pst.execute();
                  JOptionPane.showMessageDialog(null,"Data Saved");
                  pst.close();
  
              } catch (Exception e) {
                  e.printStackTrace();
              }
  </code></pre>