title: vector values to database
body: <p>How to store vector values to database? Simple example will help me (Beginner) </p>
  
  <p>I have a vector as below and wants to save its contents to 11 columns available in database. Vector contains 11 values:</p>
  
  <pre><code>Vector cellStoreVector = new Vector();
  </code></pre>
  
  <p>below is the code that I tried. Is there anything wrong in Structure or syntax? It didn't provide any error nor saved values to DB.</p>
  
  <pre><code>String sql = "INSERT INTO table name (EMP_ID,FNAME, LNAME, CATEGORY, DEPARTMENT, Title, REASON, TL, START_DATE, END_DATE, ID) VALUES(?,?,?,?,?,?,?,?,?,?,?)";
      PreparedStatement pst1 = conn.prepareStatement(sql);
      pst1.setString(1, cellStoreVector .get(0) );
      pst1.setString(2, cellStoreVector .get(1));
      pst1.setString(3, cellStoreVector .get(2));
      pst1.setString(4, cellStoreVector .get(3);
      pst1.setString(5, cellStoreVector .get(4));
  
              pst1.setString(11, cellStoreVector .get(10)     ;
  </code></pre>
  
  <p>pst1.execute();</p>