连接数据库

5年以前  |  阅读数:454 次  |  编程语言:JAVA 
//连接数据库
  public static void connectSQL(){
      try {
 ct=DriverManager.getConnection("jdbc:sqlserver://localhost:1433;DatabaseName=exam_db", "sa", "1234");
      } catch (SQLException e) {
          // TODO Auto-generated catch block
          e.printStackTrace();
      }
  }

  //查找用户,密码(管理员)

Copyright© 2013-2020

All Rights Reserved 京ICP备2023019179号-8