ImageVerifierCode 换一换
格式:DOCX , 页数:16 ,大小:19.15KB ,
资源ID:18998555      下载积分:3 金币
快捷下载
登录下载
邮箱/手机:
温馨提示:
快捷下载时,用户名和密码都是您填写的邮箱或者手机号,方便查询和重复下载(系统自动生成)。 如填写123,账号就是123,密码也是123。
特别说明:
请自助下载,系统不会自动发送文件的哦; 如果您已付费,想二次下载,请登录后访问:我的下载记录
支付方式: 支付宝    微信支付   
验证码:   换一换

加入VIP,免费下载
 

温馨提示:由于个人手机设置不同,如果发现不能下载,请复制以下地址【https://www.bdocx.com/down/18998555.html】到电脑端继续下载(重复下载不扣费)。

已注册用户请登录:
账号:
密码:
验证码:   换一换
  忘记密码?
三方登录: 微信登录   QQ登录  

下载须知

1: 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。
2: 试题试卷类文档,如果标题没有明确说明有答案则都视为没有答案,请知晓。
3: 文件的所有权益归上传用户所有。
4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
5. 本站仅提供交流平台,并不能对任何下载内容负责。
6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

版权提示 | 免责声明

本文(BBS源代码Word格式.docx)为本站会员(b****6)主动上传,冰豆网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。 若此文所含内容侵犯了您的版权或隐私,请立即通知冰豆网(发送邮件至service@bdocx.com或直接QQ联系客服),我们立即给予删除!

BBS源代码Word格式.docx

1、(name = BBS_data, -filename =d:BBS_data.mdf, -size = 20MB, -filegrowth=10%, -maxsize = 200MB -log onname =bbs_log, -bbs_data.ldfsize =10mb, -filegrowth = 10%,-maxsize = 100MB -use BBSif exists(select*from sysobjects where name =BBSUsersdrop table BBSUserscreate table BBSUsersUid int constraint pk_Ui

2、d primary key,-Uname char(8) not null, -UPassword char(16) constraint df_UPassword default 888888,-UEmail char(20) not null constraint ck_Uemail check(Uemail like%.%),-EMAILUBirthday datetime not null,-Usex int constraint df_Usex default 1, -UClass int constraint df_UClass default UStatement varchar

3、(150)not null, -URegDate datetime not null default getdate(), -UState tinyint constraint df_UState default UPoint int constraint df_UPoint default 20 , -constraint ck_UPassword check(UPassword like _BBSTopicdrop table BBSTopiccreate table BBSTopictid int constraint pk_tid primary key, -tsid int not

4、null, -tuid int not null, -treplycount int not null, -temotion char(10) not null, -TTopic varchar(16) not null CONSTRAINT ck_tt check(TTopic not like%), -TContents text not null, -TTime datetime not null default getdate() ,-TClickCount int not null, -TLastClickT datetime not null ,CONSTRAINT CK_TLC

5、CHECK (TLastClickT=TTime) -BBSReplydrop table BBSReplycreate table BBSReplyRID int constraint pk_RID primary key,-RTID int,-RSID int,-RUID int,-REmotion char(10),-RTopic varchar(20),-RContents text,-RTime datetime default getdate(),-RClickCount int,-BBSSectiondrop table BBSSectioncreate table BBSSec

6、tionSID int constraint pk_SID primary key,-SName char(10),-SMasterID int, -SStatement varchar(80), -SClickCount int constraint df_SClickCount default 0, -STopicCount int constraint df_STopicCount default -alter table BBSTopicadd constraint fk1_BBSTopic_BBSUsers foreign key(tuid) references BBSUsers(

7、Uid) -alter table BBSReplyadd constraint fk1_BBSReply_BBSTopic foreign key(RTID) references BBSTopic(TID) -add constraint fk1_BBSReply_BBSUsers foreign key(RUID) references BBSUsers(UID) -add constraint fk1_BBSTopic_BBSSection foreign key(tsid) references BBSSection(Sid) -add constraint fk1_BBSReply

8、_BBSSection foreign key(RSID) references BBSSection(Sid) -alter table BBSSectionadd constraint fk1_BBSSection_BBSUsers foreign key(SMasterID) references BBSUsers(Uid) -insertinto BBSUsers(uid,uname,upassword,uemail,UBirthday,USex,UClass,UStatement,URegDate,UState,UPoint)values(1001 ,12345619901990-1

9、2-12ANGEL2010-5-72100265432119651980-7-12011-4-741003158664conao1997-1-032009-5-731004175175death1992-1-42008-5-41005198755sgg1994-1-42000-12-121001006192445dsfg1994-12-14fdfs97-Sectioninto BBSSection(SID,SName,SMasterID,SStatement,SClickCount,STopicCount)01502-topicinto BBSTopic(tid,TSID,TUID,TRepl

10、yCount,TEmotion,TTopic,TContents ,TTime,TClickCount,TLastClickT)2001.DEVIL MAY CRY2011-1-102011-6-2420022011-4-102011-6-28200312011-6-27200422011-6-262005320112011-1-1162011-6-292012DN72011-6-2320132011-2-11820142011-1-212011-6-11-replyinto BBSReply(RID,RTID,RSID,RUID,REmotion,RTopic,RContents,RTime

11、,RClickCount)9001900290039004select* from BBSUsersselect* from BBSSectionselect* from BBSTopicselect* from BBSReplyselect uname as ,Uemail as ,UregDate as from bbsUsers where -datediff(yyyy,uregdate,getdate()2 dateadd(yyyy,2,uregdate)getdate()-update bbsUsers set UBirthday= where uid=1002select unam

12、e ,uBirthday from bbsUserswhere -datepart(mm,ubirthday)=datepart(mm,getdate() and -datepart(dd,ubirthday)=datepart(dd,getdate() day(getdate()=day(ubirthday) and month(getdate()=month(ubirthday) -(2)4-/,UPoint as order by UPoint descupdate bbsUsers set UState = where uid=1004select*where UState = 1 o

13、r UState = 3select RTopic as ,RTime as from bbsreplyorder by RTime descBBSTopic5select top 5 TTopic as ,TClickCount as from bbstopicorder by TClickCount desc-update bbstopic set ttime = where tid = update bbstopic set TLastClickT =2011-6-30-7,2-select top 2 tuid asID ,count(*) as where datediff(dd,ttime,getdate()=7group by tuid -bbsTopic-Max()Min()IDselect tuid as ID,max(TReplyCount) ,min(TReplyCount) as -T-SQLbegin -T-SQL declare minPoint int - -,minPoint select minPoint=min(upoint) from bbsUsers where dateadd(yyyy,2,uregdate) -

copyright@ 2008-2022 冰豆网网站版权所有

经营许可证编号:鄂ICP备2022015515号-1