Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while (rs.next()) {
- for (int i = 1; i <= columnsNumber; i++) {
- if (i > 1) System.out.print(", ");
- String columnValue = rs.getString(i);
- System.out.print(rsmd.getColumnName(i) + " : " + columnValue);
- }
- System.out.println("");
- }
- rs.first();
- <dependency>
- <groupId>mysql</groupId>
- <artifactId>mysql-connector-java</artifactId>
- <version>8.0.11</version>
- </dependency>
Add Comment
Please, Sign In to add comment