分类: Java
2011-07-24 08:25:28
(1) 下载java access jdbc数据包(Access_JDBC30.jar)
(2) 连接代码示例:
try {
Class.forName("com.hxtt.sql.access.AccessDriver").newInstance();
String url = "jdbc:Access:///c:/a/db.mdb";
conn = DriverManager.getConnection(url, "", "");
} catch (Exception e) {
e.printStackTrace();
}