print column names and types
This commit is contained in:
		
							parent
							
								
									91405f2dfe
								
							
						
					
					
						commit
						ccb1ca589a
					
				@ -35,7 +35,7 @@ public class jrunner {
 | 
				
			|||||||
        Integer cols = null;
 | 
					        Integer cols = null;
 | 
				
			||||||
        String[] dtn = null;
 | 
					        String[] dtn = null;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        msg = "jrunner version 0.31";
 | 
					        msg = "jrunner version 0.32";
 | 
				
			||||||
        msg = msg + nl + "-scu       source jdbc url";
 | 
					        msg = msg + nl + "-scu       source jdbc url";
 | 
				
			||||||
        msg = msg + nl + "-scn       source username";
 | 
					        msg = msg + nl + "-scn       source username";
 | 
				
			||||||
        msg = msg + nl + "-scp       source passowrd";
 | 
					        msg = msg + nl + "-scp       source passowrd";
 | 
				
			||||||
@ -179,7 +179,7 @@ public class jrunner {
 | 
				
			|||||||
        try {
 | 
					        try {
 | 
				
			||||||
            for (int i = 1; i <= cols; i++){
 | 
					            for (int i = 1; i <= cols; i++){
 | 
				
			||||||
                dtn[i] = rs.getMetaData().getColumnTypeName(i);
 | 
					                dtn[i] = rs.getMetaData().getColumnTypeName(i);
 | 
				
			||||||
                //System.out.println(dtn[i]);
 | 
					                System.out.println(rs.getMetaData().getColumnName(i) + ": " + dtn[i]);
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
        } catch (SQLException e) {
 | 
					        } catch (SQLException e) {
 | 
				
			||||||
            e.printStackTrace();
 | 
					            e.printStackTrace();
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user