This tutorial is regarding connecting your MS Access Database in Java Application Swing.
Here's the code example for the same:-
import java.sql.*;
public class DBTest {
public static void main(String[] args) {
try {
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection conn = DriverManager.getConnection("jdbc:odbc:Test");
Statement st = conn.createStatement();
String sql = "Select * from Playlist";
ResultSet rs = st.executeQuery(sql);
while(rs.next()){
System.out.println("\n"+rs.getString(1)+"\t"+rs.getString(2)+"\t"+rs.getString(3)+"\t"+rs.getString(4));
}
} catch (Exception e) {
System.out.println(e.getMessage());
}
}
}
En esta página del sitio puede ver el video en línea Connecting Java with MS Access using JdbcOdbcDriver de Duración hora minuto segunda en buena calidad , que subió el usuario Param Singh 08 febrero 2014, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 179,975 veces y le gustó 646 a los espectadores. Disfruta viendo!