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

发布时间 : 星期三 文章数据库实验报告-概念模型的建立更新完毕开始阅读

数据库原理实验报告

在弹出框中输入多个属性,包含属性的名称(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 -

联系合同范文客服:xxxxx#qq.com(#替换为@)