url: http://paste.minad.de/index.php?nid=397
Notizname: - von: - Sprache:

  1. try {
  2. 5+0%2Fdocs%2Fapi+Statement">Statement stmt = connection.createStatement();
  3. 1.5.0/docs/api/java/sql/ResultSet.html">ResultSet rs = stmt.executeQuery("SELECT * FROM test;");
  4. int i = 0;
  5. while (rs.next()) {
  6. table[i][0] = rs.getString("id");
  7. table[i][1] = rs.getString("name");
  8. table[i][2] = rs.getString("zeit");
  9. table[i][3] = rs.getString("kommentar");
  10. i++;
  11. }
  12. rs.close();
  13. stmt.close();
  14. 1.5.0/docs/api/java/lang/System.html">System.out.println("table loaded");
  15.  
  16. 1.5.0/docs/api/java/lang/System.html">System.out.println( e.getClass().getName() + ": " + e.getMessage() );
  17. }
  18. return table;
  19. }
Pastelog:
erstellt 2014.05.23 10:08:10
Hits
609




© 2009-2010 rellig