当前位置:
文档之家› ERWin建模基础教程(非常好的入门教程)
ERWin建模基础教程(非常好的入门教程)
| 16 December 2019 |
© Copyright GuangZhou Sunrise Electronics Development CO.,LTD
Business Intelligence R&D Department
如何设置物理实体字段属性
弹出Columns字段属性界面,依次选择General ,ORACLE ,Comment选项卡,前两个选 项卡逻辑模式下已经设置好字段属性的数据类型,长度,只需要设置Comment选项卡为 逻辑字段名一致。而New ,Rename ,Delete按钮与之前逻辑模式下的操作基本一致。
| 16 December 2019 |
© Copyright GuangZhou Sunrise Electronics Development CO.,LTD
Business Intelligence R&D Department
如何设置物理实体表属性
选择物理模型,选中要设置的表右键Table PropertiesComment,设置表的物理属性
Business Intelligence WGODS
ERWin 建模基础教程
2019/12/16
© Copyright GuangZhou Sunrise Electronics Development CO.,LTD
Business Intelligence R&D Department
ERWin简介
© Copyright GuangZhou Sunrise Electronics Development CO.,LTD
Business Intelligence R&D Department
如何建主题域
下面的两种方法:
| 16 December 2019 |
© Copyright GuangZhou Sunrise Electronics Development CO.,LTD
| 16 December 2019 |
© Copyright GuangZhou Sunrise Electronics Development CO.,LTD
Business Intelligence R&D Department
如何设置实体表的索引
在索引属性界面中单击New,出现New Index界面,设置索引名称,不选中Unique,单击 OK。
选中要设置的表,双击或者右键,如下:
| 16 December 2019 |
© Copyright GuangZhou Sunrise Electronics Development CO.,LTD
Business Intelligence R&D Department
如何设置逻辑实体表名与属性
弹出如下图的实体属性窗口:
| 16 December 2019 |
© Copyright GuangZhou Sunrise Electronics Development CO.,LTD
Business Intelligence R&D Department
如何设置逻辑实体表字段属性
选择Datatype选项卡设置字段的数据类型,由于在General中选择了字段的数据域 Domain类型, Datatype选项卡会选择该域的默认数据类型,然后可依据情况设置相应的 数据类型长度等。
标题栏中有快捷选择
| 16 December 2019 |
© Copyright GuangZhou Sunrise Electronics Development CO.,LTD
Business Intelligence R&D Department
如何建立实体表
单击逻辑模型下的Entity ,物理模型下的Independent table,如下图:
Business Intelligence R&D Department
如何建主题域
双击或者依据弹出的界面设置域名称
| 16 December 2019 |
© Copyright GuangZhou Sunrise Electronics Development CO.,LTD
Business Intelligence R&D Department
| 16 December 2019 |
© Copyright GuangZhou Sunrise Electronics Development CO.,LTD
Business Intelligence R&D Department
如何设置逻辑实体表字段属性
选择Definition选项卡设置字段的逻辑定义(注释),一般与字段逻辑名一致,单击OK按 钮,一个逻辑字段的属性设置完成。
| 16 December 2019 |
© Copyright GuangZhou Sunrise Electronics Development CO.,LTD
Business Intelligence R&D Department
如何设置实体表的索引
选中要设置的物理表实体,右键Indexes,弹出索引设置界面 ,设置物理表的索引属性.
在建模区域的空白外单击就会出现一个实体
| 16 December 2019 |
© Copyright GuangZhou Sunrise Electronics Development CO.,LTD
Business Intelligence R&D Department
如何设置逻辑实体表名与属性
| 16 December 2019 |
© Copyright GuangZhou Sunrise Electronics Development CO.,LTD
Business Intelligence R&D Department
如何新建工程
出现如下界面,依据需求选择,配置好后按OK键。
| 16 December 2019 |
| 16 December 2019 |
© Copyright GuangZhou Sunrise Electronics Development CO.,LTD
Business Intelligence R&D Department
如何设置物理实体字段属性
选中要设置的物理表实体,右键Columns ,设置物理表的字段属性.
| 16 December 2019 |
© Copyright GuangZhou Sunrise Electronics Development CO.,LTD
Business Intelligence R&D Department
如何设置逻辑实体表字段属性
选中要设置的实体表,右键--Attributes… 出现下面的Attributes属性框,再选择New 按钮:
| 16 December 2019 |
© Copyright GuangZhou Sunrise Electronics Development CO.,LTD
Business Intelligence R&D Department
如何设置实体表的颜色,字体
依据需要设置实体表的名称的字段,窗体的颜色。
如何选择主题域
单击所选的主题域,按右键选择Go To
| 16 December 2019 |
© Copyright GuangZhou Sunrise Electronics Development CO.,LTD
Business Intelligence R&D Department
如何选择逻辑或物理模型
| 16 December 2019 |
© Copyright GuangZhou Sunrise Electronics Development CO.,LTD
Business Intelligence R&D Department
如何设置实体界面显示
选择属性数据类型,外键和数据类型的图标显示。
| 16 December 2019 |
© Copyright GuangZhou Sunrise Electronics Development CO.,LTD
Business Intelligence R&D Department
如何设置逻辑实体表字段属性
弹出如下属性框: 可以选择New新建实体的字段属性,选择Rename修改字段属性,选择Delete删除相关属 性;在General选项卡中选择相应的数据域类型,如果是关键字,勾选Primary Key
| 16 December 2019 |
© Copyright GuangZhou Sunrise Electronics Development CO.,LTD
Business Intelligence R&D Department
如何设置物理实体表属性
在弹出的界面中设置输入Name ,Owner ,Comment ,Comment 通常与逻辑名称一致。
| 16 December 2019 |
© Copyright GuangZhou Sunrise Electronics Development CO.,LTD
Business Intelligence R&D Department
如何新建工程
•单击file 选择new键或者工具栏上的Create Model 按钮
选择前及选择后的区别
| 16 December 2019 |
© Copyright GuangZhou Sunrise Electronics Development CO.,LTD