freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內容

數(shù)據庫課程設計java(學生學籍信息管理系統(tǒng))-文庫吧

2025-03-31 08:46 本頁面


【正文】 得到的快樂肯定不可同日而語。雖然現(xiàn)在網絡很發(fā)達,很多東西都能在網上找的到,但是要從中真正學到東西,才能發(fā)揮網絡的真正作用。像有的同學把源代碼下下來后,跑過來問我數(shù)據源怎么創(chuàng)建。當然搞的我相當無語。當然,學無止境,不能因為這么一點小的成就就止步不前。前路很漫長,但我相信只要自己肯用心去學習,Nothing is impossible!參考文獻[1]王珊,薩師煊. 數(shù)據庫系統(tǒng)概論[M]. 北京:高等教育出版社,2007.[2]Java語言程序設計 北京:清華大學出版社,2005.[3]SQL Server 2000實驗指導(第2版)北京:清華大學出版社,2008.1附源程序import 。import .*。public class Student { static boolean flag。 //標記是否為管理員 static int i =0。 //限制密碼輸入次數(shù) static String present_name。 //記錄當前用戶 public static void log_in(String name,String pwd) throws Exception//用戶登錄驗證 { String DBDrive = 。 String connectionStr = jdbc:odbc:conn。 Connection con = null。 Statement stmt = null。 ResultSet rs = null。 (DBDrive)。 con = (connectionStr,sa,sa)。 stmt = ()。 rs = (Select * From users where username= 39。+name+39。 and password= 39。+pwd+39。)。 if(()) { (登錄成功!)。 } else { //設置三秒后關閉程序 i++。 if(i == 3) { int j。 (登錄錯誤次數(shù)已經三次。系統(tǒng)將在三秒后關閉!)。 for(j=0。 j3。 j++) { (1000)。 ((3j))。 } if(j == 3) { (0)。 } } else { (您的用戶名或密碼不正確!請重新登錄!)。 (您還有+(3i)+次機會)。 Scanner reader = new Scanner()。 (請輸入您的用戶名:)。 String username = ()。 (請輸入您的密碼:)。 String password = ()。 log_in(username,password)。 } } if((Administrator)) { flag = true。 //設個管理員的標志位 } else { flag = false。 } } public static void student_watch()throws Exception //當前學生信息 { String DBDrive = 。 String connectionStr = jdbc:odbc:conn。 Connection con = null。 Statement stmt = null。 ResultSet rs = null。 (DBDrive)。 con = (connectionStr,sa,sa)。 stmt = ()。 rs = (Select * From student)。 while(()) { ((sno)+ )。 ((sname)+ )。 ((ssex)+ )。 ((sclass)+ )。 ((sage)+ )。 ((sdept)+ )。 } } public static void change_secret()throws Exception //修改密碼_通用 (出現(xiàn)點問題。密碼修改不了!???) { String DBDrive = 。 String connectionStr = jdbc:odbc:conn。 Connection con = null。 Statement stmt = null。 /*ResultSet rs = null。*/ (DBDrive)。 con = (connectionStr,sa,sa)。 stmt = ()。 (您想把密碼改為:)。 Scanner reader = new Scanner()。 String pwd1 = ()。 (請重復新密碼:)。 String pwd2 = ()。 if((pwd2)) { String sql = update users set password = 39。+pwd1+39。 where username = 39。+present_name+39。 try { (sql)。 } catch(Exception e) { 。 } (密碼修改成功!下次登錄請用新的密碼!)。 /* String sql1 = select * from users where username = 39。+present_name+39。 rs = (sql1)。 ((password))。 if(((password))) { (密碼修改成功!下次登錄請用新的密碼!)。 } */ } else { (兩次密碼輸入不相同。無法完成修改!)。 } } public static void admin_watch_users()throws Exception //查看當前用戶信息_管理員 { String DBDrive = 。 String connectionStr = jdbc:odbc:conn。 Connection con = null。 Statement stmt = null。 ResultSet rs = null。 (DBDrive)。 con = (connectionStr,sa,sa)。 stmt = ()。 rs = (Select * From users)。 while(()) { ((username)+ )。 } } public static void admin_create_user()throws Exception//創(chuàng)建用戶_管理員 { String DBDrive = 。 String connectionStr = jdbc:odbc:conn。 Connection con = null。 Statement stmt = null。 ResultSet rs = null。 (DBDrive)。 con = (connectionStr,sa,sa)。 stmt = ()。 boolean a = true。 while(a) { Scanner scr = new Scanner()。 (請輸入用戶名:)。 String username =()。 String strsql = (select * from users where username =39。+username+39。)。 rs = (strsql)。 if(()) { a = false。 (輸入有誤!此用戶名已經存在!)。 break。 } (請輸入密碼:)。 Scanner reader = new Scanner()。 String pwd1 = ()。 (請重復密碼:)。 String pwd2 = ()。 if((pwd2)) { String sql = insert into users values(?,?)。 PreparedStatement pstmt = (sql)。 (1, username)。 (2, pwd1)。 int intTemp = ()。 if(intTemp != 0) { a = false。 (用戶創(chuàng)建成功!)。 } } else { (兩次密碼輸入不相同。無法完成創(chuàng)建!)。 } } } public static void admin_delete_user()throws Exception//刪除用戶_管理員 { String DBDrive = 。 String connectionStr = jdbc:odbc:conn。 Connection con = null。 Statement stmt = null。 (DBDrive)。 con = (connectionStr,sa,sa)。 stmt = ()。 (請輸入所要刪除用戶名:)。 Scanner reader = new Scanner()。 String name_d = ()。 String sql = delete from users WHERE username = 39。+name_d+39。 (sql)。 (刪除成功!)。 } public static void admin_student_insert()throws Exception // 插入學生信息 { String DBDrive = 。 String connectionStr = jdbc:odbc:conn。 Connection con = null。 Statement stmt = null。 ResultSet rs = null。 (DBDrive)。 con = (connectionStr,sa,sa)。 stmt = ()。 boolean a = true。 while(a) { Scanner scr = new Scanner()。 (請輸入學生的學號:)。 String sno =()。 String strsql = (select * from student where sno =39。+sno+39。)。 rs = (strsql)。 if(()) { a = false。 (輸入有誤!此學號已經存在!)。
點擊復制文檔內容
公司管理相關推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1