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

正文內(nèi)容

游戲平臺(tái)管理系統(tǒng)設(shè)計(jì)畢業(yè)設(shè)計(jì)word格式(編輯修改稿)

2025-01-07 06:10 本頁面
 

【文章內(nèi)容簡(jiǎn)介】 SELECT UTerri 專區(qū) ,COUNT(Uno) 人數(shù) FROM GameUser GROUP BY UTerri HAVING COUNT(Uno)10 結(jié)果: (12) 查詢與用戶“ 周 \_勇 %”所在專區(qū)的所有會(huì)員: Select * from GameUser Where UTerri IN (select UTerri from GameUser where UName like 39。周 \_勇 %39。 Escape 39。\39。 )。 下為部分 結(jié)果: (13) 利用視圖和會(huì)員表查詢消費(fèi)金額大于平均消費(fèi)金額的會(huì)員信息 Select x.*, from GameUser x,VI_UserConsume y where = ( select Avg(總金額 ) average from VI_UserConsume )and = 。 下面為部分 結(jié)果: (14) 查詢管理員的最大年齡和最小年齡 declare @y int。 select @y=DateName(Year,getdate())。 select @yDateName(Year,Max(AdmBirth)) 最小歲數(shù) , @yDateName(Year,min(AdmBirth)) 最大歲數(shù) from Adiminstor。 結(jié)果: (15) 利用連接 ( join) 查詢玩 實(shí)況足球 和 魔獸爭(zhēng)霸 冰封王座 的游戲玩家。 select , 游戲 , 游戲 from (select Uname, Gname from GameInfo,GameUser,Game_category where Gname=39。實(shí)況足球 39。 and Uno=GI_Uno and GI_Gno=GNo) x join (select Uname, Gname from GameInfo,GameUser,Game_category where Gname=39。魔獸爭(zhēng)霸 冰封王座 39。 and Uno=GI_Uno and GI_Gno=GNo) y on( = )。 結(jié)果: (16) 利用 UNION 查詢所有的 select , from (select Uname, Gname 游戲名 from GameInfo,GameUser,Game_category where Uno=GI_Uno and GI_Gno=GNo) x Union select , from (select Uname, Gname 游戲名 from GameInfo,GameUser,Game_category where Uno=GI_Uno and GI_Gno=GNo) x 。 下面是部分結(jié)果: (17) 刪除一些會(huì)員,則該會(huì)員想關(guān)的信息將被刪除。 delete from Gameuser where Uname=39。牛浩 39。 delete from Gameuser where Uname=39。 敖 大 慶 39。 (18) 刪除一些會(huì)員,則該會(huì)員想關(guān)的信息將被刪除。 delete from Game_category Where Gname like 39。魔獸爭(zhēng)霸 \冰 封王座 39。 escape 39。\39。 (19) 刪除一管理員: delete from Adiminstor where AdmNo=39。0000139。 delete from Adiminstor where AdmNo=39。0000439。 更改管理員后: update Game_category set GAdmNo =39。0000739。 where GadmNo=39。0000439。 delete from Adiminstor where AdmNo=39。0000439。 create table Adiminstor ( AdmNo char(5), AdmName varchar(20) not null, AdmPassw varchar(16) not null, AdmSex char(2) constraint adc1 check(AdmSex in (39。男 39。,39。女 39。)), AdmBirth datetime, constraint adc2 check(AdmBirth between 39。196011 0:0:039。 and 39。199511 0:0:039。), constraint AdmKey Primary key (AdmNo) )。 /*游戲類表 */ create table Game_category ( GNo char(4), GName char(20) unique, GAdmNo char(5) constraint gc1 foreign key (GAdmNo)references Adiminstor(AdmNo) on delete cascade on update cascade, GHot int constraint gc2 check(Ghot between 0 and 10), GMaxMum int not null constraint gc3 check(GMaxMum100), constraint GameKey Primary key (GNo) )。 alter table Game_category drop constraint gc1。 alter table Game_category add constraint gc1 foreign key (GAdmNo)references Adiminstor(AdmNo) on delete cascade on update cascade。 Create table GameVIP ( V_Level int primary key, constraint GVc1 check(V_Level between 0 and 5), V_Price int not null, V_Discount numeric(3,2), constraint GVc2 check(V_Discount between 0 and 1), V_truckAbility int constraint GVc3 check(V_truckAbility between 0 and 50) )。 Create table GameUser ( UNo char(8), UName varchar(20) not null, UPassw varchar(18) not null, USex char(2) constraint GUc1 check(USex in (39。男 39。,39。女 39。)), UsVIP_level int constraint GUc2 foreign key(UsVIP_level) references GameVIP(V_level), UTerri char(20), ULastLogin datetime /*constraint GUc4 check(ULastLogin 202111)*/, UMarks int, UCoin int, constraint GUserKey primary key(UNo) )。 Create table GameTeam ( TLeader char(8), constraint GTc1 foreign key(TLeader) references GameUser(UNo) on delete cascade, TMember char(8), constraint GTc2 foreign key(TMember) references GameUser(UNo), TName char(20), TMarks int,/*建立一個(gè) Trigger*/ constraint GTKey primary key(TLeader,TMember) )。 create table GameCard ( CNo char(2) primary key, GNo char(4) constraint GCc1 foreign key(Gno) references Game_category(Gno) on update cascade on delete cascade, CPrice int, CTime int, )。 create table CardInfo ( CDeadLine DateTime primary key, GNo char(4) , constraint CIc1 foreign key(Gno) references Game_category(Gno), CPass varchar(20) )。 Create table ConSumeInfo ( Con_no int primary key, Uno char(8) constraint GSc1 foreign key(Uno) references GameUser(Uno) on update cascade on delete cascade, Con_type char(4) constraint GSc2 check(Con_type in (39。入賬 39。,39。消費(fèi) 39。)),/*(39。In39。,39。out39。)*/ Coins int, Con_date datetime )。 create table GameInfo ( GI_UNo char(8) constraint GIc1 foreign key(GI_Uno) references GameUser(Uno) on update cascade on delete cascade, GI_GNo char(4) constraint GIc2 foreign key(GI_GNo) references Game_category(Gno) on update cascade on delete cascade, /*GI_Lever int constraint GIc3 check(GI_Lever between 0 and 100),*/ GI_IsOnline char(2), GI_CardAvaibleTime int, constraint GIc4 check(GI_IsOnline in (39。是 39。,39。否 39。)), constraint GIkey primary key(GI_UNo,GI_GNo) )。 /*創(chuàng)建視圖 */ /*查看某個(gè)游戲?qū)?yīng)的人數(shù)及管理員 */ create view VI_CatoToUser(管理員 ,游戲名 ,游戲人數(shù) ) as select , , from Game_category x, Adiminstor y, (select GI_GNo,count(*) member from GameInfo Group by GI_GNo) z where = and =。 /*當(dāng)前在線會(huì)員信息視圖 */ create view VI_OnlineUser(會(huì)員號(hào) , 會(huì)員姓名 ,VIP等級(jí) ,個(gè)人積分 ,可用金幣 ) as select distinct() , , , from GameInfo y,GameUser x where =39。是 39。 and =。 /*用戶在該 平臺(tái)的消費(fèi)金額及相關(guān)記錄 */ Create view VI_UserConsume(會(huì)員號(hào) ,會(huì)員姓名 ,VIP等級(jí) ,個(gè)人積分 ,總金額 ) as select , , , ,z. SumC from GameUser x, (Select UNo, Sum(Coins) SumC from ConsumeInfo Group by Uno) z where =。 /* 創(chuàng)建存儲(chǔ)過程 */ /*購買點(diǎn)卡存儲(chǔ)過程 */ use Gamemanager if object_ID(39。buyCard39。,39。P39。) is not null drop proc buyCard。 go Create Procedure buyCard @U_no char(8),@C_No char(2),@C_pass varchar(20) as declare @coin int, @price int,@GameNo char(4),@discount numeric(3,2)。 begin select @coin=Ucoin from GameUser Where Uno=@U_no。 select @price=CPrice, @GameNo=GNo from GameCard where Cno=@C_No。 select @discount=V_Discount from GameVIP where V_level in (select UsVIP_Level from GameUser where Uno=@U_no)。 declare @conNum int。 if(@coin@pric
點(diǎn)擊復(fù)制文檔內(nèi)容
公司管理相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖片鄂ICP備17016276號(hào)-1