Java access to Access three ways

xiaoxiao2021-03-06  60

Oh, the topic, the content is indeed old, there is no new thing, it is some of your own usual notes. . . . A friend wants to think in fact, it is still very useful. . I will go out. . .

Three ways

The first is the JDBC driver using Access, to

Http://industry.java.sun.com/products/jdbc/drivers Find the JDBC driver in the Access on this site.

The second method is to try the code below.

Con = DriverManager.getConnection ("JDBC: ODBC: DRIVER = {Microsoft Access Driver (* .mdb)}; dbq = c: /data/access/test1.mdb", "DBA", "SQL");

Like the following code. This way you can access the Access database.

The third is the use of Sun's JDBCODBC bridge. This is much more, this is not written here

转载请注明原文地址:https://www.9cbs.com/read-72832.html

New Post(0)