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

正文內(nèi)容

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

2025-03-31 08:46 本頁面


【正文】 得到的快樂肯定不可同日而語。雖然現(xiàn)在網(wǎng)絡(luò)很發(fā)達(dá),很多東西都能在網(wǎng)上找的到,但是要從中真正學(xué)到東西,才能發(fā)揮網(wǎng)絡(luò)的真正作用。像有的同學(xué)把源代碼下下來后,跑過來問我數(shù)據(jù)源怎么創(chuàng)建。當(dāng)然搞的我相當(dāng)無語。當(dāng)然,學(xué)無止境,不能因?yàn)檫@么一點(diǎn)小的成就就止步不前。前路很漫長,但我相信只要自己肯用心去學(xué)習(xí),Nothing is impossible!參考文獻(xiàn)[1]王珊,薩師煊. 數(shù)據(jù)庫系統(tǒng)概論[M]. 北京:高等教育出版社,2007.[2]Java語言程序設(shè)計(jì) 北京:清華大學(xué)出版社,2005.[3]SQL Server 2000實(shí)驗(yàn)指導(dǎo)(第2版)北京:清華大學(xué)出版社,2008.1附源程序import 。import .*。public class Student { static boolean flag。 //標(biāo)記是否為管理員 static int i =0。 //限制密碼輸入次數(shù) static String present_name。 //記錄當(dāng)前用戶 public static void log_in(String name,String pwd) throws Exception//用戶登錄驗(yàn)證 { 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 { //設(shè)置三秒后關(guān)閉程序 i++。 if(i == 3) { int j。 (登錄錯(cuò)誤次數(shù)已經(jīng)三次。系統(tǒng)將在三秒后關(guān)閉!)。 for(j=0。 j3。 j++) { (1000)。 ((3j))。 } if(j == 3) { (0)。 } } else { (您的用戶名或密碼不正確!請重新登錄!)。 (您還有+(3i)+次機(jī)會)。 Scanner reader = new Scanner()。 (請輸入您的用戶名:)。 String username = ()。 (請輸入您的密碼:)。 String password = ()。 log_in(username,password)。 } } if((Administrator)) { flag = true。 //設(shè)個(gè)管理員的標(biāo)志位 } else { flag = false。 } } public static void student_watch()throws Exception //當(dāng)前學(xué)生信息 { 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)點(diǎ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 = ()。 (請重復(fù)新密碼:)。 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 //查看當(dāng)前用戶信息_管理員 { 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。 (輸入有誤!此用戶名已經(jīng)存在!)。 break。 } (請輸入密碼:)。 Scanner reader = new Scanner()。 String pwd1 = ()。 (請重復(fù)密碼:)。 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 = ()。 (請輸入所要?jiǎng)h除用戶名:)。 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 // 插入學(xué)生信息 { 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()。 (請輸入學(xué)生的學(xué)號:)。 String sno =()。 String strsql = (select * from student where sno =39。+sno+39。)。 rs = (strsql)。 if(()) { a = false。 (輸入有誤!此學(xué)號已經(jīng)存在!)。
點(diǎn)擊復(fù)制文檔內(nèi)容
公司管理相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1