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

正文內(nèi)容

數(shù)據(jù)庫(kù)課程設(shè)計(jì)(新聞發(fā)布系統(tǒng))-wenkub.com

2025-02-23 01:50 本頁(yè)面
   

【正文】 該系統(tǒng)只滿足于用戶實(shí)現(xiàn)對(duì)日常記錄、通訊錄和密碼備忘功能的實(shí)現(xiàn),可擴(kuò)展功能很多,有待進(jìn)一步完善。通過(guò)畫(huà) ER 圖,完成對(duì)數(shù)據(jù)庫(kù)的概念結(jié)構(gòu)設(shè)計(jì);將 ER圖轉(zhuǎn)化為關(guān)系模式,完成數(shù)據(jù)庫(kù)的邏輯結(jié)構(gòu)設(shè)計(jì);將關(guān)系模式轉(zhuǎn)化為數(shù)據(jù)庫(kù)中的表, 完成數(shù)據(jù)庫(kù)的物理結(jié)構(gòu)設(shè)計(jì)。超級(jí)管理員不能刪除 !39。 查詢結(jié)果如圖 所示 圖 帶有關(guān)鍵字 的所有密碼備忘信息 7)創(chuàng)建觸發(fā)器 在 tb_User 表中創(chuàng)建觸發(fā)器,當(dāng)刪除 tb_User 表中用戶信息時(shí),檢查該用戶名是否為 Admin(即超級(jí)用戶), 如果是則不能 刪除該條用戶信息。) 創(chuàng)建 CHECK 約束結(jié)果如圖 所示: 圖 為日常記錄表中列 Week 創(chuàng)建 CHECK_WEEK 約束結(jié)果 5)為數(shù)據(jù)庫(kù)表中列創(chuàng)建 DEFAULT 約束 新建用戶后,為用戶創(chuàng)建初始密碼,即對(duì)用戶表中列 PassWord 創(chuàng)建 DEFAULT 約束,創(chuàng)建 SQL語(yǔ)句如下所示: use db_Memo ALTER table tb_User ADD CONSTRAINT PassWord_Default DEFAULT 39。 or week=39。 or week=39。 or week=39。,4) 數(shù)據(jù)插入結(jié)果如圖 所示 圖 用戶信息表添加信息結(jié)果 2)簡(jiǎn)單數(shù)據(jù)查詢 向新建表中插入新數(shù)據(jù)后,查詢?nèi)粘S涗浶畔ⅲ?SQL 語(yǔ)句如下所示: use db_Memo select Theme,Content,Date,Week,Time,City,Weather From tb_DaiRecord 數(shù)據(jù)查詢結(jié)果如圖 所示 16 圖 查詢所有日常記錄信息結(jié)果 3)嵌套查詢 根據(jù)數(shù)據(jù)庫(kù)中已添加的信息,現(xiàn)在查詢用戶 Lee 的所有好友通訊錄信息, SQL 語(yǔ)句如下所示: use db_Memo select Name,Tel,Email,Groups,Memo From tb_AddBook,tb_User Where = and UserNum=39。,3) insert tb_User values(39。,2) insert tb_User values(39。創(chuàng)建數(shù)據(jù)庫(kù)語(yǔ)句如下所示: create database NewsManagementSystem use NewsManagementSystem 管理員表 create table Admin( AdminID int primary key identity(1,1), AdminName nvarchar(20) not null, AdminPassword nvarchar(20) not null ) 權(quán)限表 create table Roles( RoleID int primary key identity(1,1), RoleName nvarchar(20) not null ) 管理員權(quán)限表 create table Admin_Roles( ARID int identity(1,1), AdminID int, RoleID int, constraint ARPK primary key(ARID,AdminID,RoleID), constraint ARFK foreign key(AdminID) references Admin(AdminID), constraint ARFK2 foreign key(RoleID) references Roles(RoleID) ) 模塊表 create table Modules( ModuleID int primary key identity(1,1), ModuleName nvarchar(50) not null, ModulePID int not null ) 權(quán)限模塊表 create table Roles_Modules( RMID int identity(1,1), RoleID int, ModuleID int, constraint RMPK primary key(RMID,RoleID,ModuleID), constraint RMFK foreign key(RoleID) references Roles(RoleID), constraint RMFK2 foreign key(ModuleID) references Modules(ModuleID) ) 評(píng)論表 create table Comment( CommentID int primary key identity(1,1), CommentTitle nvarchar(50) not null, CommentContent ntext not null, CommentDate datetime default getdate() 14 ) 權(quán)限評(píng)論表 create table Roles_Comment( RCID int identity(1,1), RoleID int, constraint RCPK primary key(RCID,RoleID), constraint RCFK foreign key(RoleID) references Roles(RoleID), ) 用戶表 create table Users( UserID int primary key identity(1,1), UserName nvarchar(20) not null, UserPassword nvarchar(20) not null, UserEmail nvarchar(20) not null ) 用戶評(píng)論表 create table Users_Comment( UCID int identity(1,1), UserID int, CommentID int, constraint UCPK primary key(UCID,UserID,CommentID), constraint UCFK foreign key(UserID) references Users(UserID), constraint UCFK2 foreign key(CommentID) references Comment(CommentID) ) 新聞表 create table News( NewsID int primary key identity(1,1), NewsTitle nvarchar(50) not null, NewsContent ntext not null, NewsDate datetime default getdate(), NewsDesc nvarchar(50) not null, NewsImagePath nvarchar(50), NewsRate int, NewsIsCheck bit, NewsIsTop bit ) 新聞評(píng)論表 create table News_Comment( NCommentID int identity(1,1), NewsID int, CommentID int, constraint NCommentPK primary key(NCommentID,NewsID,CommentID), constraint NCommentFK foreign key(NewsID) references News(NewsID), constraint NCommentFK2 foreign key(CommentID) references Comment(CommentID) ) 新聞模塊表 create table News_Modules( NMID int identity(1,1), NewsID int, ModuleID int, constraint NMPK primary key(NMID,NewsID,ModuleID), 15 constraint NMFK f
點(diǎn)擊復(fù)制文檔內(nèi)容
環(huán)評(píng)公示相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖片鄂ICP備17016276號(hào)-1