JAVA连接数据库实例
try{Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");}catch(ClassNotFoundExceptionce){System.out.println("SQLException:"+ce.getMessage());}try{Connectioncon=DriverManager.getConnection("jdbc:odbc:mydb");Statementstmt=con.createStatement();
下载地址
用户评论
该资源不错,教会了我怎样连接数据库,谢谢!