数据库实验报告-概念模型的建立

loading 分享 2026-8-27 下载文档

数据库原理实验报告

在弹出框中输入多个属性,包含属性的名称(name)、代码(code)、数据类型(data type),对于数据类型可以选择,如下图:

在输入属性时注意属性的特性:

I:为主码(在PowerDesigner 15里P为主码);如果是主码,则表明该属性唯一标识一个实体。

M:为是否允许为空;如果选中,则表示该属性不允许为空。 (三)主要功能

1、通过整体把握,能够对学生的基本信息(如学号、姓名、性别出生日期、社会关系、学生简历)进行统一的、有效地管理;

2、能清晰的描绘出关于学生实体以及有和学生有关系的实体情况,可以对学校开设的课程进行管理;

3、能对教学计划、学生选课、学生成绩、学生奖惩进行管理;

五、主要代码

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

- 4 -

/* DBMS name: Microsoft SQL Server 2005 */ /* Created on: 2014/12/23 19:01:33 */

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

数据库原理实验报告

if exists (select 1

from sysobjects where id = object_id('cla') and type = 'U') drop table cla go

if exists (select 1

from sysobjects where id = object_id('col') and type = 'U') drop table col go

if exists (select 1

from sysobjects

where id = object_id('jcxm') and type = 'U') drop table jcxm

- 5 -

数据库原理实验报告

go

if exists (select 1

from sysobjects

where id = object_id('ltest') and type = 'U') drop table ltest go

if exists (select 1

from sysobjects where id = object_id('maj') and type = 'U') drop table maj go

if exists (select 1

from sysobjects where id = object_id('nat') and type = 'U') drop table nat go

if exists (select 1

- 6 -

from sysobjects

where id = object_id('\ and type = 'U') drop table \go

if exists (select 1

from sysobjects where id = object_id('pol') and type = 'U') drop table pol go

if exists (select 1

from sysobjects

where id = object_id('selcla') and type = 'U') drop table selcla go

if exists (select 1

from sysobjects

where id = object_id('shehuiguanxi') and type = 'U')

数据库原理实验报告

- 7 -


数据库实验报告-概念模型的建立.doc 将本文的Word文档下载到电脑
搜索更多关于: 数据库实验报告-概念模型的建立 的文档
相关推荐
相关阅读