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

正文內(nèi)容

數(shù)據(jù)庫課程設(shè)計---旅行社數(shù)據(jù)庫-預覽頁

2025-02-11 15:08 上一頁面

下一頁面
 

【正文】 建立觸發(fā)器(1)建立觸發(fā)器,不允許向ZD_zd表中插入數(shù)據(jù)create trigger trigger_1on ZD_zdinstead of insertas begin select 39。endgo(2)建立觸發(fā)器,不允許開始時間大于結(jié)束時間 drop trigger trigger_2create trigger trigger_2on ZD_groupafter insertas begin select G_Stime,G_Etimefrom insertedif 39。beginselect 39。rollback transaction endendgo(3)建立觸發(fā)器,不允許員工年齡小于或大于 drop trigger trigger_3create trigger trigger_3on ZD_staffafter insertas begin select S_Agefrom insertedif 39。 and 39。 as 39。 not between 39。beginselect 39。rollback transaction endendgo(5)在ZD_decide上建立觸發(fā)器,確保數(shù)據(jù)的正確關(guān)聯(lián) drop trigger trigger_5create trigger trigger_5on ZD_decideafter insertas begindeclare bl1 char(8)= (select G_Id from inserted)declare bl2 char(8)= (select T_Id from inserted)declare bl3 date=(select T_Time from ZD_travel where T_Id=bl2)declare bl4 date=(select G_Stime from ZD_group where G_Id=bl1)declare bl5 date=(select G_Etime from ZD_group where G_Id=bl1)declare bl6 varchar(10)=(select G_City from ZD_group where G_Id=bl1)declare bl7 varchar(10)=(select T_City from ZD_travel where T_Id=bl2)if bl3bl4 or bl3bl5 or bl6bl7beginselect 39。rollback transaction endendgo(6)在ZD_acpany上建立觸發(fā)器,確保數(shù)據(jù)的正確關(guān)聯(lián) drop trigger trigger_6create trigger trigger_6on ZD_acpanyafter insertas begindeclare bl1 char(8)= (select G_Id from inserted)declare bl2 date= (select A_Acco from inserted)declare bl4 date=(select G_Stime from ZD_group where G_Id=bl1)declare bl5 date=(select G_Etime from ZD_group where G_Id=bl1)if bl2bl4 or bl2bl5beginselect 39。rollback transaction endendgo(7)在ZD_arrange上建立觸發(fā)器,確保數(shù)據(jù)的正確關(guān)聯(lián) drop trigger trigger_7create trigger trigger_7on ZD_arrangeafter insertas begindeclare bl1 char(8)= (select G_Id from inserted)declare bl2 date= (select AR_Time from inserted)declare bl4 date=(select G_Stime from ZD_group where G_Id=bl1)declare bl5 date=(select G_Etime from ZD_group where G_Id=bl1)if bl2bl4 or bl2bl5beginselect 39。rollback transaction endendgo(8)在ZD_apply上建立觸發(fā)器,確保數(shù)據(jù)的正確關(guān)聯(lián) drop trigger trigger_8create trigger trigger_8on ZD_applyafter insertas begindeclare bl1 char(8)= (select G_Id from inserted)declare bl2 date= (select AP_Time from inserted)declare bl4 date=(select G_Stime from ZD_group where G_Id=bl1)if bl2=bl4beginselect 39。rollback transaction endendgo代碼:INSERT INTO ZD_zdVALUES(39。,39。1995010139。1566149304139。,39。,39。),(39。,39。,10,39。,39。,39。),(39。,39。,10,39。,39。,39。),(39。,39。,10,39。000139。成都景點......39。成都39。參觀成都景點39。2013010239。000339。成都景點......39。成都39。參觀包頭景點39。2013010139。000539。包頭景點......39。包頭39。參觀包頭景點39。2013010339。000739。成都景點......39。成都39。參觀成都景點39。2013020239。000939。包頭景點......39。包頭39。參觀包頭景點39。2013020239。INSERT INTO ZD_staffVALUES(39。,39。,21,39。),(39。,39。,28,39。),(39。,39。,21,39。),(39。,39。,23,39。),(39。,39。,21,39。),(39。,39。,27,39。),(39。,39。,30,39。),(39。,39。,27,39。)。小張39。男39。1834725678039。小張39。女39。1824125678139。小張39。男39。1834725678239。小張39。女39。1824125678339。小張39。男39。1834725678439。小張39。女39。1824125678539。小張39。男39。1834725678639。小張39。女39。1824125678739。小張39。男39。1834725678839。小張39。女39。1824125679139。,39。,39。,39。,39。,39。,39。,39。,39。,39。,39。,39。,39。000139。一39。1566149304139。安心酒店39。成都什么路39。000339。四39。1556149304339。云山酒店39。包頭什么路39。000539。五39。1566149307539。華山酒店39。包頭什么路39。000739。二39。1566149304739。飛宮酒店39。成都什么路39。000939。三39。1566149304939。于語酒店39。包頭什么路39。INSERT INTO ZD_ticketVALUES(39。,39。,39。,39。,333,39。,39。,39。),(39。,39。,39。,39。,123,39。,39。,39。),(39。,39。,39。,39。,235,39。,39。,39。),(39。,39。,39。,39。,235,39。,39。,39。),(39。,39。,39。,39。,333,39。,39。,39。)。 and = and = and = select * from view_zd_1 建立酒店視圖 CREATE VIEW view_zd_2ASselect C_Name as 客戶姓名,AP_Time as 報名時間,AP_Cost as 報名費用, AR_Time as 入住時間,H_Name as 酒店名稱,H_Level as 酒店星級,H_Adds as 酒店地址,H_Contact as 酒店電話from ZD_client,ZD_apply,ZD_arrange,ZD_hotelwhere =39。 and = and = and = select * from view_zd_3代碼:建立人員視圖 CREATE VIEW view_zd_4ASselect C_Name as 客戶姓名,AP_Time as 報名時間,AP_Cost as 報名費用, A_Acco as 陪同時間,S_Name as 人員姓名,S_Nature as 員工性質(zhì),S_Contact as 人員電話from ZD_client,ZD_apply,ZD_acpany,ZD_staffwhere =39。D00139。正大旅行社39。,39。,39。010139。2013010439。Z10039。 觸發(fā)器測試圖2上圖可以看出,在對旅行團表插入一條不符合要求的信息時,觸發(fā)器觸發(fā),插入操作失敗同時提示一個失敗的原因。張毅39。男39。1826725678039。張毅39。男39。1826725678039。,39。000139。2013090839。000139。2013090839。003139。98039。系統(tǒng)看上去非常簡單,我們在生活中很常見,比如攜程、去哪兒網(wǎng),也經(jīng)常從這些網(wǎng)站上查看合適的旅游信息,但當實際設(shè)計它的時候才發(fā)現(xiàn),這么平常、熟悉的系統(tǒng)原來竟這么復雜,注冊時填寫的每一條信息的限制條件、登錄時系統(tǒng)怎樣驗證都需要仔細推敲,要把所有的情況都考慮到。雖然平時上課這些軟件的使用老師都講過,考試也能通過,但當用這些軟件和課本上的知識來獨立地設(shè)計一個實際的系統(tǒng)時,很多問題就暴露出來了,比如什么時候要用時序圖、什么時候要用流程圖,雖然這些圖我們每個人都會畫,但是這些圖是用來描述什么的、作用是什么、什么時候需要使用這些圖我們卻不是很清楚。課程設(shè)計是培養(yǎng)學生綜合運用所學知識,發(fā)現(xiàn)、提出、分析和解決實際問題,鍛煉實踐能力的重要環(huán)節(jié),這次課程設(shè)計雖然很累,但我學到了不少東西,對軟件的設(shè)計過程和方法有了更深入的了解。凡是能寫注釋的地方,應(yīng)該寫上注釋,以便查看。不允許使用其他字符作為名稱。四、數(shù)據(jù)完整性規(guī)范為便于在程序的編碼期查錯,可以在設(shè)計數(shù)據(jù)庫的時候盡可能多的加上約束(check)。在開發(fā)階段保存完整的主鍵、外鍵和唯一索引
點擊復制文檔內(nèi)容
環(huán)評公示相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1