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

正文內(nèi)容

數(shù)據(jù)庫課程設(shè)計(jì)課程設(shè)計(jì)說明書-汽車租賃管理系統(tǒng)(編輯修改稿)

2025-03-09 06:21 本頁面
 

【文章內(nèi)容簡介】 M M M M ...加油oidoilstationpriceoilvolumeototal...Serial ( 4 )Characters ( 10 )Number ( 4 )Number ( 5 )Money... M M M M M ...租賃htidrenttyperenttimereturntimemustmoney...Serial ( 4 )Characters ( 8 )Date amp。 TimeDate amp。 TimeMoney... M M M ...namesetoldnamenewnameCharacters ( 15 )Characters ( 20 ) M M 7 汽車信息表 汽車 (cid,ame,ctype,um,cclor,clsu,coil,cpho,cmile,cgm,cbf,cdep,cdm,csta,ctimes) 分析: 因?yàn)?cid 是主鍵,而且 um 不允許重復(fù),所以主鍵只有一個(gè)屬性,不存在部分依賴;又因?yàn)?cid um,所以不存在非主屬性對主鍵 cid 的傳遞依賴,所以該關(guān)系屬于 3NF。 租賃情況表 租賃 (htid,cid,eid,kid,renttype,renttime,returntime,mustmoney,des,regtime,rem) 分析: 因?yàn)橹挥?htid 是主鍵,所以不存在部分依賴,因此該關(guān)系屬于 2NF。但存在非主屬性 des 通過 cid 對主鍵 htid 的傳遞依賴,所以該關(guān)系不屬于 3NF。 加油表 加油 (oid,cid,eid,oilstation,price,oilvolume,ototal,odate) 分析: 因?yàn)橹挥?oid 是主鍵,所以不存在部分依賴,且不存在非主屬性對主鍵 oid的傳遞依賴,所以該關(guān)系屬于 3NF。 維修表 維修 (rid,cid,eid,rplace,rmat,rpmoney,rother,rtotal,rdate,rcon,rrem) 分析: 因?yàn)橹挥?rid 是主鍵,所以不存在部分依賴,且不存在非主屬性對主鍵 rid的傳遞依賴,所以該關(guān)系屬于 3NF。 事故 登記 表 事故 (aid,cid,eid,aple,adate,aplace,acus,acon,adtime,arem) 分析: 因?yàn)橹挥?aid 是主鍵,所以不存在部分依賴,且不存在非主屬性對主鍵 aid的傳遞依賴,所以該關(guān)系屬于 3NF。 費(fèi)用 表 費(fèi)用 (htid,eid,kid,fdis,freturn,fother,ftotal) 分析: 因?yàn)橹挥?htid 是主鍵,所以不存在部分依賴,因此該關(guān)系屬于 2NF。但存在非主屬性 fdis 通過 kid 對主鍵 htid 的傳遞依賴,所以該關(guān)系不屬于 3NF。 1 基本信息表 基本信息 (sid,uid,sstyle,sname) 分析: 因?yàn)橹挥?sid 是主鍵,所以不存在部分依賴,且不存在非主屬性對主鍵 sid的傳遞依賴,所以該關(guān)系屬于 3NF。 數(shù)據(jù)庫 物理結(jié)構(gòu) 視圖 uh_kh: select * from 用戶 ,客戶 where kid=uid kh_ht: select * from 客戶 8 where(not exists(select * from ht where kid=客戶 .kid)) ht: select htid,kname,ktype,ktel,ame,ctype,um,renttype,renttime, returntime,mustmoney,des,regtime,rem,租賃 .cid,租賃 .kid,eid from 租賃 ,汽車 ,客戶 where 租賃 .cid = 汽車 .cid and 客戶 .kid=租賃 .kid oil: select oid,加油 .cid,加油 .eid,oilstation,price,oilvolume,ototal, odate,ename,ame,coil from 加油 ,汽車 ,員工 where 加油 .cid = 汽車 .cid 存儲(chǔ)過程 u_xg: create procedure u_xg ( @users char(20), @pwd char(35) ) as update 用戶 set pwd=@pwd where users=@users kh_tj: create procedure kh_tj(@users char(20),@pwd char(35),@ktype char(8),@kname char(10),@ksex char(5),@ksf char(20),@kdy char(10),@ktel char(15),@klic char(10),@kadd char(25)) as declare @kid numeric(4) begin insert into 用戶 (users,pwd,type) values(@users,@pwd,@ktype) select @kid=uid from 用戶 where users=@users insert into 客戶 (kid,ktype,kname,ksex,ksf,kdy,ktel,klic,kadd) values(@kid,@ktype,@kname,@ksex,@ksf,@kdy,@ktel,@klic,@kadd) end em_tj: create procedure em_tj (@users char(20),@pwd char(35),@type char(8),@ename char(10),@esex char(6),@esf char(20),@etel char(15),@eadd char(25)) as declare @eid numeric(4) begin insert into 用戶 (users,pwd,type) values(@users,@pwd,@type) select @eid=uid from 用戶 where users=@users insert into 員工 values(@eid,@ename,@esex,@esf,@etel,@eadd) end car_xg: create procedure car_xg (@cid numeric(4),@ame char(10),@ctype char(10),@um char(10),@cclor char(6),@clsu char(10),@coil char(6),@cpho image,@cmile numeric(5),@cgm datetime,@cbf datetime,@cdep money,@cdm money) as begin update 汽車 set ame=@ame,ctype=@ctype,um=@um,cclor=@cclor, clsu=@clsu,coil=@coil,cpho=@cpho,cmile=@cmile,cgm=@cgm,cbf=@cbf, cdep=@cdep,cdm=@cdm where cid=@cid end 觸發(fā)器 csta_xg: create trigger csta_xg on 租賃 for insert as 9 update 汽車 set csta=(select renttype from inserted) where cid=(select cid from inserted) csta_xg2: create trigger csta_xg2 on 租賃 for update as if (select cid from deleted)(select cid from inserted) begin update 汽車 set csta=39。待租 39。 where cid=(select cid from deleted) update 汽車 set csta=(select renttype from inserted) where cid=(select cid from inserted) update 汽車 set ctimes=ctimes+1 where cid=(select cid from inserted) update 汽車 set ctimes=ctimes1 where cid=(select cid from deleted) end ctimes_xg: create trigger ctimes_xg on 租賃 for insert as declare @ctimes numeric(4) if (s
點(diǎn)擊復(fù)制文檔內(nèi)容
環(huán)評公示相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖片鄂ICP備17016276號-1