Advertisement
sergAccount

Untitled

Mar 14th, 2021
815
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.74 KB | None | 0 0
  1. /*
  2.  * To change this license header, choose License Headers in Project Properties.
  3.  * To change this template file, choose Tools | Templates
  4.  * and open the template in the editor.
  5.  */
  6. package testdb;
  7.  
  8. import java.sql.Connection;
  9.  
  10. /**
  11.  *
  12.  * @author Admin
  13.  */
  14. public class TestDB {
  15.  
  16.     /**
  17.      * @param args the command line arguments
  18.      */
  19.     public static void main(String[] args) {
  20.         // TODO code application logic here
  21.        
  22.         try{
  23.             Connection c = DataBaseUtil.getConn();
  24.             // System.out.println("c=" + c);
  25.             System.out.println("c=" + c.getMetaData().getDatabaseProductVersion());
  26.         }catch(Exception exc){
  27.             exc.printStackTrace();
  28.         }
  29.     }
  30.    
  31. }
  32.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement