第一范文网 - 专业文章范例文档资料分享平台

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

来源:用户分享 时间:2025/5/24 9:29:55 本文由loading 分享 下载这篇文档手机版
说明:文章内容仅供预览,部分内容可能不全,需要完整文档或者需要复制内容,请下载word后使用。下载word有问题请添加微信号:xxxxxxx或QQ:xxxxxx 处理(尽可能给您提供完整文档),感谢您的支持与谅解。

数据库原理实验报告

在弹出框中输入多个属性,包含属性的名称(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文档下载到电脑,方便复制、编辑、收藏和打印
本文链接:https://www.diyifanwen.net/c858795hr6b4n25r6n2ar_2.html(转载请注明文章来源)
热门推荐
Copyright © 2012-2023 第一范文网 版权所有 免责声明 | 联系我们
声明 :本网站尊重并保护知识产权,根据《信息网络传播权保护条例》,如果我们转载的作品侵犯了您的权利,请在一个月内通知我们,我们会及时删除。
客服QQ:xxxxxx 邮箱:xxxxxx@qq.com
渝ICP备2023013149号
Top