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

正文內(nèi)容

數(shù)據(jù)庫課程設(shè)計(jì)概要-文庫吧資料

2025-06-23 06:34本頁面
  

【正文】 RefresData()。 DataBase db = new DataBase()。 sqlStr = delete from 學(xué)生表 where Sno= 39。 ObjClose()。 = true。 } else { = 刪除。 = false。 }刪除try { if (() == 刪除) { = 確定。 RefresData()。 DataBase db = new DataBase()。 where Sno=39。,Sdept=39。,Sage=39。,Ssex=39。 sqlStr = update 學(xué)生表 set Sname=39。 ObjClose()。 = true。 } else { = 修改。 = true。 = true。 = false。 = false。 ()。 = 確定。 } } else { (學(xué)號(hào)和姓名不能為空)。 = true。 = true。 } else { ObjClose()。 = true。 Form3_Load(null, null)。 RefresData()。 if (b == true) { if ((添加成功!繼續(xù)添加嗎?, 添加學(xué)生, , , ) == ) { //Clear()。 bool b。)。,39。,39。,39。,39。 sqlStr = insert into 學(xué)生表 values(39。amp。 } else { = 添加。 = false。 Clear()。代碼如下:try { if (() == 添加) { = 確定。 } } catch { (用戶名或密碼錯(cuò)誤,錯(cuò)誤)。 = 。 } } else { (用戶名或密碼錯(cuò)誤,請(qǐng)重新輸入)。 = 。 ()。 [1] = [0].Rows[0].ItemArray[1].ToString()。 if (str1 == str2) { if (str3 == ().Trim()) { Form2 ob_Form2 = new Form2()。 str3 = [0].Rows[0].ItemArray[1].ToString().Trim()。 string str1, str2,str3。 + () + 39。 DataSet ds = new DataSet()。 return false。 return true。 ()。 = 。 } } public bool UpdateDB(string sqlStr) { SqlConnection sqlConn = new SqlConnection(connstr)。 } if ([0]. != 0) { return dataSet。 } catch (Exception ex) { ()。 (dataSet)。 dataAdapter = new SqlDataAdapter(sqlStr, dataConnection)。integrated security=SSPI。 string connstr = server=PC20100908TULP。 public SqlDataAdapter dataAdapter。using 。using 。using 。具體實(shí)現(xiàn)代碼如下:using System。c ) 關(guān)閉數(shù)據(jù)庫的連接由于DataSet采用是斷開連接的方式,所以當(dāng)把數(shù)據(jù)填充到數(shù)據(jù)集后即可斷開與數(shù)據(jù)庫的連接。b) 通過OLEDB 相連,訪問SQL Server2005, MicrosoftAccess, Oracle 或者其他有提供OLE DB 連接能力的數(shù)據(jù)庫c) 使用SqlConnection 直接SQL Server2005 相連②a) 創(chuàng)建數(shù)據(jù)庫連接 中使用sqlConnection 類對(duì)SQL Server2005 以及更高版本進(jìn)行連接, 這個(gè)類的構(gòu)造函數(shù)接受一個(gè)可選參數(shù),稱為連接字符串,該字符串用于定義正在連接的數(shù)據(jù)庫的類型、位置以及其他信息,這些屬性用分號(hào)分隔,通常該字符串包含如下信息:①Data Source 特性: 指定SQL Server 數(shù)據(jù)庫所在計(jì)算機(jī)名稱;② Initial Catalog 特性: 指定連接的SQL Server 數(shù)據(jù)庫的名稱;③userName 和userPassword 特性:指定用SQL SERVER登錄方式的有效帳戶名和密碼或設(shè)置為:integrated security=SSPI設(shè)置為Windows 登錄方式。(2) 前臺(tái)開發(fā)平臺(tái)的選擇:(3) 。③課程信息管理子系統(tǒng): 主要用于管理員對(duì)選修課程信息的添加、修改、刪除管理,實(shí)現(xiàn)課程信息數(shù)據(jù)的更新。rollback transactionend 創(chuàng)建觸發(fā)器triscsnocreate trigger triscsnoon sc for updateasif update(sno)begindeclare sno_old char(10),count intselect sno_old=sno from deletedselect count=count(*) from student where sno=sno_oldif count0rollback transactionEnd10 系統(tǒng)實(shí)現(xiàn)(1) 系統(tǒng)功能模塊圖:系統(tǒng)功能模塊圖如圖101學(xué)生選課管理系統(tǒng)登錄子系統(tǒng)學(xué)生信息管理子系統(tǒng)課程信息管理子系統(tǒng)學(xué)生選課信息管理子系統(tǒng)學(xué)生信息添加學(xué)生信息修改學(xué)生信息刪除課程信息添加課程信息修改課程信息刪除選課信息的查詢進(jìn)行課程選擇圖101系統(tǒng)功能模塊圖四個(gè)子系統(tǒng)的功能如下:①登錄子系統(tǒng): 可以實(shí)現(xiàn)學(xué)生選課系統(tǒng)管理員。returnendelsebeginprint 39。(4)往用戶表插入數(shù)據(jù)insert into 用戶表(username userPassword userPurview)values(‘姚春振’,’123’,’超級(jí)用戶’)insert into 用戶表values(‘李龍龍’,’123’,’管理員’)insert into 用戶表values(‘毋康康’,’123’,’一般用戶’)insert into 用戶表values(‘呂斌’,’123’,’管理員’)8.?dāng)?shù)據(jù)庫權(quán)限管理該系統(tǒng)設(shè)置三種類型的用戶(1) 管理員:李龍龍,呂斌(2) 超級(jí)用戶:姚春振(3) 一般用戶:毋康康建立觸發(fā)器,存儲(chǔ)過程建立學(xué)生信息管理的存貯過程create procedure studentmessageasbeginselect sno,sname from tbl_學(xué)生表endgoexec studentmessagego建立課程信息的存貯過程create procedure coursemessageasbeginselect sno,sname from tbl_課程表endgoexec coursemessagego創(chuàng)建觸發(fā)器score_grade_tricreate trigger score_grade_trion sc for insert,updateasdeclare score_read intselect score_read=grade from insertedif score_read=0 and score_read=100beginprint 39。100439。1134439。,88)。,39。insert into成績(jī)表values(39。100239。1134239。,92)。,39。(3)往成績(jī)表插入數(shù)據(jù)insert into 成績(jī)表(sno,o,grade)values(39。3’,’3’,’9039。操作系統(tǒng)39。100439。)。,39。,39。insert into課程表values(39。5’,’2’,’7539。數(shù)學(xué)39。100239。,’3’,’80’)。,39。,39。(2)往課程信息表插入數(shù)據(jù)insert into課程表(Cno Cname Ccredt Csemeste Cperiod)values(39。is39。男39。張立39。1134439。)。,18,39。,39。,39。insert into學(xué)生表values(39。cs39。女39。劉晨39。1134239。)。,20,39。,39。,39。(5)創(chuàng)建用戶表create table 用戶表
點(diǎn)擊復(fù)制文檔內(nèi)容
黨政相關(guān)相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1