Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * To change this license header, choose License Headers in Project Properties.
- * To change this template file, choose Tools | Templates
- * and open the template in the editor.
- */
- package testdb;
- import java.sql.Connection;
- /**
- *
- * @author Admin
- */
- public class TestDB {
- /**
- * @param args the command line arguments
- */
- public static void main(String[] args) {
- // TODO code application logic here
- try{
- Connection c = DataBaseUtil.getConn();
- // System.out.println("c=" + c);
- System.out.println("c=" + c.getMetaData().getDatabaseProductVersion());
- }catch(Exception exc){
- exc.printStackTrace();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement