//連接數據庫
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();
}
}
//查找用戶,密碼(管理員)