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

正文內(nèi)容

bbs論壇數(shù)據(jù)庫設(shè)計-在線瀏覽

2024-08-08 07:48本頁面
  

【正文】 date())=7group by tuid select tuid as 用戶ID,max(TReplyCount) 最多回帖數(shù),min(TReplyCount) as 最低回帖數(shù)from bbsreplygroup by tuid-SQL編程⑴提升積分:①查出用戶表中注冊時間超過2年的最低積分②如果該積分低于100分,則對所有低于注冊時間超過2年且積分低于198分的用戶積分實施提升2分操作⑵輸出提分后評出各等級:① 1000以上A級。200分以上C級 。100分以下為E級begin TSQL編程 declare minPoint int 定義變量,表示元老最低積分 查詢所有元老用戶的最低積分,并賦值給minPoint select minPoint=min(upoint) from bbsUsers where dateadd(yyyy,2,uregdate)getdate() 提分操作 while(minPoint100) begin update bbsUsers set Upoint=Upoint+2 where dateadd(yyyy,2,uregdate)getdate() and Upoint198 select minPoint=min(Upoint) from bbsUSers where dateadd(yyyy,2,uregdate)getdate() end print 39。 select uid 用戶ID,Uname 用戶名,等級=case when upoint1000 then 39。 when upoint500 then 39。 when upoint200 then 39。 when upoint100 then 39。 else 39。 end from bbsUsersend 第五章 個人小結(jié)與體會 在選擇這個課程設(shè)計題目前,看了一下題目要求應(yīng)該蠻簡單的吧,結(jié)果光是寫代碼就遇到很多問題,以前學過的知識還是不夠熟練,編不了幾段就要看一下書,比如說怎么限制主鍵約束,設(shè)置默認值,各個實體之間的聯(lián)系怎么用SQL語言來建立等等。在插入數(shù)據(jù)的過程中出現(xiàn)無法插入的情況,檢查發(fā)現(xiàn),然來定義屬性變量的時候給的內(nèi)存空間不夠,修改后正常插入。源程序代碼:存在檢測use mastergoif exists(select*from sysdatabases where name =39。)drop database BBSgo建庫create database BBSon primary(name = BBS_data, 邏輯名filename =39。, 物理文件size = 20MB, 初始大小filegrowth=10%, 文件增長率maxsize = 200MB 初始大小)log on(name =bbs_log, 邏輯名filename =39。, 物理文件size =10mb, 初始大小filegrowth = 10%,文件增長率maxsize = 100MB 最大尺寸)use BBSgoif exists(select*from sysobjects where name =39。)drop table BBSUsersgocreate table BBSUsers(UID int constraint pk_UID primary key,用戶編號UName char(8) not null, 用戶姓名UPassword char(16) constraint df_UPassword default 39。,用戶密碼UEmail char(20) not null constraint ck_U check(UEmail like39。),用戶EmailUBirthday datetime not null,用戶生日Usex int constraint df_Usex default 39。, 用戶性別UClass int constraint df_UClass default 39。, 用戶等級UStatement varchar(150)not null, 用戶說明URegDate datetime not null default getdate(), 用戶注冊時間UState tinyint constraint df_UState default 39。, 用戶狀態(tài) UPoint int constraint df_UPoint default 39。 , 用戶積分 constraint ck_UPassword check(UPassword like 39。))if exists(select*from sysobjects where name =39。)drop table BBSTopicgocreate table BBSTopic(TID int constraint pk_tid primary key, 主貼編號TSID int not null, 主貼板塊編號TUID int not null, 主貼用戶編號TReplyCount int not null, 主貼回復次數(shù)TEmotion char(10) not null, 主貼表情TTopic varchar(50) not null CONSTRAINT ck_TTopic check(TTopic not like39。39。), 主貼標題TContents text not null, 主貼內(nèi)容TTime datetime not null default getdate() ,發(fā)帖時間TClickCount int not null, 主貼點擊次數(shù) TLastClickT datetime not null ,CONSTRAINT [CK_TLC] CHECK ([TLastClickT]=TTime) 主貼最后點擊時間 )if exists(select*from sysobjects where name =39。)drop table BBSSectiongocreate table BBSSection(SID int constraint pk_SID primary key,版塊編號SName char(20),版塊名稱 SMasterID int, 版主編號 SStatement varchar(100), 版塊說明 SClickCount int constraint df_SClickCount default 39。, 版塊點擊次數(shù) STopicCount int constraint df_STopicCount default 39。 版塊主題數(shù) )if exists(select*from sysobjects where name =39。)drop table BBSReplygocreate table BBSReply(RID int constraint pk_RID primary key,回復編號 RTID int,回復帖子編號 RSID int,回復版塊編號 RUID int,回復用戶編號 REmotion char(10),回復表情 RTopic varchar(20),回帖主題RContents text,回帖內(nèi)容RTime datetime default getdate(),回帖時間RClickCount int,回帖點擊次數(shù))建立聯(lián)系alter table BBSTopicadd constraint fk1_BBSTopic_BBSUsers foreign key(tuid) references BBSUsers(UID) 一個用戶可以發(fā)表多篇主帖內(nèi)容alter table BBSReplyadd constraint fk1_BBSReply_BBSTopic foreign key(RTID) references BBSTopic(TID) 一篇主帖能夠?qū)?yīng)多條回帖alter table BBSReplyadd constraint fk1_BBSReply_BBSUsers foreign key(RUID) references BBSUsers(UID) 一個用戶可以發(fā)表多條回帖內(nèi)容alter table BBSTopicadd constraint fk1_BBSTopic_BBSSection foreign key(TSID) references BBSSection(SID) 一個版塊可以包含多篇主帖alter table BBSRep
點擊復制文檔內(nèi)容
環(huán)評公示相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1