数据库系统工程师资料.docVIP

  • 90
  • 0
  • 约9.17万字
  • 约 102页
  • 2017-09-22 发布于北京
  • 举报
自学考试互联网数据库1-11章问答资料(7) { public static void main(String argv[]) { if(argv.length==0) { System.err.println(“检查到空的URL!”); System.exit(1); }∥end of if try { Class.forName(“textFileDriver”); Class.forName(“jdbc.odbc.JdbcOdbcDriver”); Class.forName(搃maginary.sq1.iMsq1Driver?; t String ur1=argv[0]; String user,pwd; If(argv.length1) { user=argv[1]; } else { user=敂 } [ If(argv.length2) { pwd=argv[2]; } else { pwd=敂 } [ Connection con=DriverManager.getConnectiion(ur1,user,pwd); Con.close(); System.out.println(“连接失败!”); }∥end of try ∥处理连接异常 catch(Exception e) { System.out.println(e.getMessage()); e.prin

文档评论(0)

1亿VIP精品文档

相关文档