请问如何加载java  2  sdk中提供的jdbc  -odbc驱动程序?  
在jsp中如何连接access数据库???

解决方案 »

  1.   

    try{
          Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
          Connection con = DriverManager.getConnection("jdbc:odbc:DataBase"); //DataBase 是你的数据源
          Statement stmt = con.createStatement();
          ResultSet result = stmt.executeQuery("select * from Table");
          
          while(result.next()){
            String name = result.getString("Column Name");
            Date  Birthday= result.getDate("Column Name");
            int phone = result.getInt("Column Name");   
          }
          con.close();
        }catch(Exception e){
          System.out.println(e.toString());
        }
      

  2.   

    装个jbuilder
    用gui操作很方便的