package a;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import javax.swing.JFrame;
public class Main extends JFrame {
public static void main(String[] args) {
try {
Class.class.forName("net.ucanaccess.jdbc.UcanaccessDriver");
Connection conn = DriverManager.getConnection("jdbc:ucanaccess://bible7.dat", "admin", "gqrjabcde");
PreparedStatement ps = conn.prepareStatement("select * from bible");
ResultSet rs = ps.executeQuery();
while (rs.next()) {
System.out.println(rs.getString("strjw"));
System.out.println(rs.getString("niv"));
}
} catch (Exception e) {
e.printStackTrace();
}
}
}