课程设计社区管理系统说明书

2026/4/23 18:37:33

数据库系统概论课程设计论文

工作编号 int null, 残疾等级 int null, 志愿者 char(20) null, 健康状况 char(2) null, 姓名 char(20) null, constraint PK_居民 primary key nonclustered (身份证号) ) go

/*==============================================================*/ /* Index: 服务_FK */ /*==============================================================*/ create index 服务_FK on 居民 ( 工作编号 ASC ) go

/*==============================================================*/

/* Table: 文体活动 */ /*==============================================================*/ create table 文体活动 (

时间 datetime null, 内容 char(1000) null,

活动代号 int not null, 工作编号 int null, constraint PK_文体活动 primary key nonclustered (活动代号) )

go

/*==============================================================*/ /* Index: 组织_FK */ /*==============================================================*/ create index 组织_FK on 文体活动 ( 工作编号 ASC ) go

/*==============================================================*/ /* Table: 残疾人 */ /*==============================================================*/ create table 残疾人 (

残疾证号 int not null, 工作编号 int null, 保障金 int null,

第 12 页 共 14页

数据库系统概论课程设计论文

残疾等级 int null, constraint PK_残疾人 primary key nonclustered (残疾证号) ) go

/*==============================================================*/ /* Index: 管理_FK */ /*==============================================================*/ create index 管理_FK on 残疾人 ( 工作编号 ASC ) go

/*==============================================================*/ /* Table: 民事纠纷 */ /*==============================================================*/ create table 民事纠纷 (

时间 datetime null, 处理结果 char(100) null, 事务编号 int not null, 工作编号 int null, constraint PK_民事纠纷 primary key nonclustered (事务编号) ) go

/*==============================================================*/ /* Index: 处理_FK */ /*==============================================================*/ create index 处理_FK on 民事纠纷 ( 工作编号 ASC ) go

/*==============================================================*/ /* Table: 社区 */ /*==============================================================*/ create table 社区 (

工作编号 int not null, constraint PK_社区 primary key nonclustered (工作编号) ) go

/*==============================================================*/

/* Table: 社区概况 */

第 13 页 共 14页

数据库系统概论课程设计论文

/*==============================================================*/ create table 社区概况 (

社区名称 char(10) null,

社区编号 int not null, 社区文化 char(1000) null, constraint PK_社区概况 primary key nonclustered (社区编号) ) go

alter table 培训

add constraint FK_培训_培训_居民 foreign key (身份证号) references 居民 (身份证号) go

alter table 培训

add constraint FK_培训_培训2_下岗培训 foreign key (培训类型号) references 下岗培训 (培训类型号) go

alter table 居民

add constraint FK_居民_服务_社区 foreign key (工作编号) references 社区 (工作编号) go

alter table 文体活动

add constraint FK_文体活动_组织_社区 foreign key (工作编号) references 社区 (工作编号) go

alter table 残疾人

add constraint FK_残疾人_管理_社区 foreign key (工作编号) references 社区 (工作编号) go

alter table 民事纠纷

add constraint FK_民事纠纷_处理_社区 foreign key (工作编号) references 社区 (工作编号) go

第 14 页 共 14页


课程设计社区管理系统说明书.doc 将本文的Word文档下载到电脑
搜索更多关于: 课程设计社区管理系统说明书 的文档
相关推荐
相关阅读
× 游客快捷下载通道(下载后可以自由复制和排版)

下载本文档需要支付 10

支付方式:

开通VIP包月会员 特价:29元/月

注:下载文档有可能“只有目录或者内容不全”等情况,请下载之前注意辨别,如果您已付费且无法下载或内容有问题,请联系我们协助你处理。
微信:xuecool-com QQ:370150219