操纵Access数据库

 1 static void AccessAccess(Args _args)
 2 {
 3     LoginProperty LP = new LoginProperty();
 4     OdbcConnection myConnection;
 5     Statement myStatement;
 6     ResultSet myResult;
 7     LP.setDSN("MSAccess2000");
 8     try {
 9          myConnection = new OdbcConnection(LP);
10     }    
11     catch    
12     {
13          info("Check username/password.");
14          return;
15     }
16     myStatement = myConnection.createStatement();
17     myResult    = myStatement.executeQuery("SELECT Title FROM Employees");
18     while (myResult.next())
19         print myResult.getString(1);
20 }
原文地址:https://www.cnblogs.com/Jinnchu/p/2663410.html