在JAVA中怎么连接数据库/
是不是固定的格式,给段代码?拜托
顺便求个中文JDK文挡下载地址,拜托了

解决方案 »

  1.   

    google jsp连接数据库 很多的 只要把连接的代码写到java类中就可以了
    是由固定的格式
      

  2.   

    http://www.zasp.net/Soft/html/BOOK/cxsj/JAVA/2005/2005112314452.htm
      

  3.   

    jdbc-odbc 桥接需要配odbc数据源  Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
      Connection conn=DriverManager.getConnection("jdbc:odbc:mao");
    Statement stmt=conn.createStatement();