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

正文內(nèi)容

數(shù)據(jù)庫實(shí)驗(yàn)總結(jié)-資料下載頁

2025-09-21 09:37本頁面
  

【正文】 配的值 use 霍雙雙200826351 go if exists(select name from sysobjects where name=39。select_sno39。 and type=39。P39。)drop procedure select_sno go create procedure select_sno @Sno char(5)as select Sno,Sname from Student where Sno=@Sno go exec select_sno 39。9500239。 第三部分:觸發(fā)器(1)在表depart上創(chuàng)建一個(gè)觸發(fā)器 depart_update , 當(dāng)更改部門號(hào)時(shí)同步更改 worker表中對(duì)應(yīng)的部門號(hào)。Go If exists(select name from sysobjects where name=39。depart_update39。and type=39。tr39。)drop trigger depart_update go Create trigger depart_update on depart for update as set =(select 部門號(hào) from inserted)where =(select 部門號(hào)from deleted)(2)在表worker上創(chuàng)建一個(gè)觸發(fā)器worker_delete,當(dāng)刪除職工記錄時(shí)同步刪除salary表中對(duì)應(yīng)的職工記錄。Go If exists(select name from sysobjects where name=39。worker_delete39。and type=39。tr39。)drop trigger worker_delete go create trigger worker_delete on worker for delete as delete salary where =(select 職工號(hào) from deleted)(3)刪除觸發(fā)器depart_update(4)刪除觸發(fā)器worker_delete(5)在數(shù)據(jù)庫中創(chuàng)建一個(gè)觸發(fā)器,向選課表添加一條紀(jì)錄時(shí),檢查該紀(jì)錄的學(xué)號(hào)在學(xué)生表中是否存在,檢查該紀(jì)錄的課程號(hào)在課程表中是否存在,若其中有一項(xiàng)為否,則拒絕添加操作,并顯示“違反數(shù)據(jù)一致性”提示信息。Go If exists(select name from sysobjects where name=39。add_student39。and type=39。tr39。)drop trigger add_student gocreate trigger add_student on sc for insert as go 第四部分:數(shù)據(jù)庫完整性實(shí)施worker表的“性別”字段默認(rèn)值為“男”的約束 create default default_sex as 39。男39。 go sp_bindefault39。default_sex39。,39。39。實(shí)施salary表的“工資”字段值在0~9999的約束、create rule salary_rule as @salary=39。[0~9999]39。 go sp_bindrule 39。salary_rule39。,39。39。實(shí)施depart表的“部門號(hào)”字段值唯一的非聚集索引的約束為worker表建立外鍵“部門號(hào)”,參考表depart的“部門號(hào)”列。建立一個(gè)規(guī)則 sex:@性別=’男’OR @性別=’女’,將其綁定到worker表的“性別”列上。Create rule sex as @性別=39。男39。OR @性別=39。女39。 Go Sp_bindrule 39。sex39。,39。39。刪除1小題所建立的約束。刪除2小題所建立的約束。刪除3小題所建立的約束刪除4小題所建立的約束第五篇:數(shù)據(jù)庫原理實(shí)驗(yàn)學(xué)期總結(jié)20102011學(xué)年第1學(xué)期《數(shù)據(jù)庫原理實(shí)驗(yàn)》學(xué)期論文數(shù)據(jù)庫原理實(shí)驗(yàn)學(xué)期總結(jié)我的題目:班級(jí):_______________學(xué)號(hào):_______________姓名:_______________ 摘要不少于100字關(guān)鍵字:(至少4個(gè))一、數(shù)據(jù)庫實(shí)驗(yàn)的主要意義的目的二、概述本學(xué)期的實(shí)驗(yàn)內(nèi)容和目的三、實(shí)驗(yàn)中涉及的主要實(shí)驗(yàn)原理四、總結(jié)220102011學(xué)年第1學(xué)期《數(shù)據(jù)庫原理實(shí)驗(yàn)》學(xué)期論文五、附錄/ 2
點(diǎn)擊復(fù)制文檔內(nèi)容
公司管理相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1