Here is Sun's JDBC tutorial:
http://java.sun.com/docs/books/tutorial/jdbc/index.html
Hi,
First decide which database u want to connect it?
Only the three steps:
1.If it is in the Oracle then..
String query="Select * from emp_table";
class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection con=DriverManager.getConnection("jdbc:odbc:<dataso urcename>");
PreparedStatement ps=con.prepareStatement(query);
ResultSet rs=ps.execute();
2.If it is for MsAcess then
the above steps are same only the driver and class.forName changes ..
now i forget it later i will send it.
Pls try the above coding and reply is must.If it is wrong Pls send the correct answer...
bye takecare!
by
ela