Class.forName("sun.jdbc.odbc.JdbcOdbcDriver").newInstance();
String dbUrl = "jdbc:odbc:aaa";//aaa是数据源的名字
Class.forName(driver).newInstance();
Connection conn= DriverManager.getConnection(dbUrl,"","");
Statement stmt=conn.createStatement();
这样应该可以了
String dbUrl = "jdbc:odbc:aaa";//aaa是数据源的名字
Class.forName(driver).newInstance();
Connection conn= DriverManager.getConnection(dbUrl,"","");
Statement stmt=conn.createStatement();
这样应该可以了