print column names and types

This commit is contained in:
Paul Trowbridge 2022-10-21 09:31:14 -04:00
parent 91405f2dfe
commit ccb1ca589a
1 changed files with 2 additions and 2 deletions

View File

@ -35,7 +35,7 @@ public class jrunner {
Integer cols = null;
String[] dtn = null;
msg = "jrunner version 0.31";
msg = "jrunner version 0.32";
msg = msg + nl + "-scu source jdbc url";
msg = msg + nl + "-scn source username";
msg = msg + nl + "-scp source passowrd";
@ -179,7 +179,7 @@ public class jrunner {
try {
for (int i = 1; i <= cols; i++){
dtn[i] = rs.getMetaData().getColumnTypeName(i);
//System.out.println(dtn[i]);
System.out.println(rs.getMetaData().getColumnName(i) + ": " + dtn[i]);
}
} catch (SQLException e) {
e.printStackTrace();