Guest User

Untitled

a guest
Jul 20th, 2018
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. while (rs.next()) {
  2. for (int i = 1; i <= columnsNumber; i++) {
  3. if (i > 1) System.out.print(", ");
  4. String columnValue = rs.getString(i);
  5. System.out.print(rsmd.getColumnName(i) + " : " + columnValue);
  6. }
  7. System.out.println("");
  8. }
  9. rs.first();
  10.  
  11. <dependency>
  12. <groupId>mysql</groupId>
  13. <artifactId>mysql-connector-java</artifactId>
  14. <version>8.0.11</version>
  15. </dependency>
Add Comment
Please, Sign In to add comment