JAVA连接数据库实例 下载 tkst84415 27 0 JAVA 2019-07-17 18:07:20 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(); 立即下载 微信扫一扫:分享 微信里点“发现”,扫一下 二维码便可将本文分享至朋友圈。