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();

用户评论
请输入评论内容
评分:
Generic placeholder image 卡了网匿名网友 2019-07-17 18:07:20

该资源不错,教会了我怎样连接数据库,谢谢!