今天也是試了好久
終於找到前人的經驗
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Properties prop = new Properties();
prop.put("charSet", "Big5");
prop.put("user", "");
prop.put("password", "");
String url = "jdbc:odbc:DRIVER=Microsoft Access Driver (*.mdb);DBQ=xxx.mdb";
Connection con = DriverManager.getConnection(url ,prop);
Statement stat = con.createStatement();
沒有留言:
張貼留言