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

正文內(nèi)容

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

 

【正文】 建立觸發(fā)器(1)建立觸發(fā)器,不允許向ZD_zd表中插入數(shù)據(jù)create trigger trigger_1on ZD_zdinstead of insertas begin select 39。endgo(2)建立觸發(fā)器,不允許開(kāi)始時(shí)間大于結(jié)束時(shí)間 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。成都景點(diǎn)......39。成都39。參觀(guān)成都景點(diǎn)39。2013010239。000339。成都景點(diǎn)......39。成都39。參觀(guān)包頭景點(diǎn)39。2013010139。000539。包頭景點(diǎn)......39。包頭39。參觀(guān)包頭景點(diǎn)39。2013010339。000739。成都景點(diǎn)......39。成都39。參觀(guān)成都景點(diǎn)39。2013020239。000939。包頭景點(diǎn)......39。包頭39。參觀(guān)包頭景點(diǎn)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。于語(yǔ)酒店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 客戶(hù)姓名,AP_Time as 報(bào)名時(shí)間,AP_Cost as 報(bào)名費(fèi)用, AR_Time as 入住時(shí)間,H_Name as 酒店名稱(chēng),H_Level as 酒店星級(jí),H_Adds as 酒店地址,H_Contact as 酒店電話(huà)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 客戶(hù)姓名,AP_Time as 報(bào)名時(shí)間,AP_Cost as 報(bào)名費(fèi)用, A_Acco as 陪同時(shí)間,S_Name as 人員姓名,S_Nature as 員工性質(zhì),S_Contact as 人員電話(huà)from ZD_client,ZD_apply,ZD_acpany,ZD_staffwhere =39。D00139。正大旅行社39。,39。,39。010139。2013010439。Z10039。 觸發(fā)器測(cè)試圖2上圖可以看出,在對(duì)旅行團(tuán)表插入一條不符合要求的信息時(shí),觸發(fā)器觸發(fā),插入操作失敗同時(shí)提示一個(gè)失敗的原因。張毅39。男39。1826725678039。張毅39。男39。1826725678039。,39。000139。2013090839。000139。2013090839。003139。98039。系統(tǒng)看上去非常簡(jiǎn)單,我們?cè)谏钪泻艹R?jiàn),比如攜程、去哪兒網(wǎng),也經(jīng)常從這些網(wǎng)站上查看合適的旅游信息,但當(dāng)實(shí)際設(shè)計(jì)它的時(shí)候才發(fā)現(xiàn),這么平常、熟悉的系統(tǒng)原來(lái)竟這么復(fù)雜,注冊(cè)時(shí)填寫(xiě)的每一條信息的限制條件、登錄時(shí)系統(tǒng)怎樣驗(yàn)證都需要仔細(xì)推敲,要把所有的情況都考慮到。雖然平時(shí)上課這些軟件的使用老師都講過(guò),考試也能通過(guò),但當(dāng)用這些軟件和課本上的知識(shí)來(lái)獨(dú)立地設(shè)計(jì)一個(gè)實(shí)際的系統(tǒng)時(shí),很多問(wèn)題就暴露出來(lái)了,比如什么時(shí)候要用時(shí)序圖、什么時(shí)候要用流程圖,雖然這些圖我們每個(gè)人都會(huì)畫(huà),但是這些圖是用來(lái)描述什么的、作用是什么、什么時(shí)候需要使用這些圖我們卻不是很清楚。課程設(shè)計(jì)是培養(yǎng)學(xué)生綜合運(yùn)用所學(xué)知識(shí),發(fā)現(xiàn)、提出、分析和解決實(shí)際問(wèn)題,鍛煉實(shí)踐能力的重要環(huán)節(jié),這次課程設(shè)計(jì)雖然很累,但我學(xué)到了不少東西,對(duì)軟件的設(shè)計(jì)過(guò)程和方法有了更深入的了解。凡是能寫(xiě)注釋的地方,應(yīng)該寫(xiě)上注釋?zhuān)员悴榭础2辉试S使用其他字符作為名稱(chēng)。四、數(shù)據(jù)完整性規(guī)范為便于在程序的編碼期查錯(cuò),可以在設(shè)計(jì)數(shù)據(jù)庫(kù)的時(shí)候盡可能多的加上約束(check)。在開(kāi)發(fā)階段保存完整的主鍵、外鍵和唯一索引
點(diǎn)擊復(fù)制文檔內(nèi)容
環(huán)評(píng)公示相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1