PowerDesigner常见使用
PowerDesigner常见使用
- 1 导入PowerDesigner的表展示
- 2 PowerDesigner中表之间关系
- 3 PowerDesigner中表关系间实线和虚线
- 4 导入Sql脚本到PowerDesigner中
楼主目前PowerDesigner版本为15.1版本,所有操作,不同版本,大同小异.
1 导入PowerDesigner的表展示
将数据库中的sql脚本导入PowerDesigner
软件,如下图所示.
常需要的目标效果如下图:
操作步骤:
- 选择工具(Tools)下显示参数选择(Display Preference).
- 选择Table里面的Advanced按钮.
- 选择Columns里面的(2).
- 先勾选Code,点击Code行点击按钮3,将Code放到首行,等级OK按钮.
- 选择工具(Tools)下的Execute Commands中Edit/Run Script按钮.
运行下列脚本:
Option Explicit
ValidationMode = True
InteractiveMode = im_Batch Dim mdl ' the current model ' get the current active model
Set mdl = ActiveModel
If (mdl Is Nothing) Then MsgBox "There is no current Model "
ElseIf Not mdl.IsKindOf(PdPDM.cls_Model) Then MsgBox "The current model is not an Physical Data model. "
Else ProcessFolder mdl
End If Private sub ProcessFolder(folder)
On Error Resume Next Dim Tab 'running table for each Tab in folder.tables if not tab.isShortcut then tab.name = tab.comment Dim col ' running column for each col in tab.columns if col.comment="" then else col.name= col.comment end if next end if next Dim view 'running view for each view in folder.Views if not view.isShortcut then view.name = view.comment end if next ' go into the sub-packages Dim f ' running folder For Each f In folder.Packages if not f.IsShortcut then ProcessFolder f end if Next
end sub
2 PowerDesigner中表之间关系
最终效果图:
操作步骤:
- 选择Link/Extended Dependency,将表二指向表一.
- 双击虚线或鼠标右键,进入属性设置,选择Extended Dependcies模块,在Stereotype中随便写入两表关系即可.
3 PowerDesigner中表关系间实线和虚线
虚线: 可追溯性连接,不建立实际的物理外键关系,只做一个说明,从视图上表示两个表的关系(逻辑外键).
实线: 建立实际的外键关系(物理外键).
二者导入的sql不同,虚线导出的两个表没有外键关联.实线导出的表则存在外键关联.
总结:
故在工作中,常用虚线表示两个表之间的关系.
4 导入Sql脚本到PowerDesigner中
问题: 导入Sql过程中, 可能存在报错,反馈字符集解析错误.
解决: 使用ANSI字符集, 新建一个脚本文件,设置字符集为ANSI,将原脚本内容复制,保存新脚本文件.
参考资料:
https://blog.csdn.net/downmoon/article/details/8108968
https://blog.csdn.net/qq_42917336/article/details/89713569
PowerDesigner常见使用相关推荐
- PowerDesigner常见错误
撰写时间:2021/10/28 下面我们讲PowerDesigner一些常见错误是如何处理的: 1. existence of reference join: 缺少主键,找到相应报错的表格,为主键列添 ...
- error: invalid application of 'sizeof' to an incomplete type 'JNINativeMethod []'
android studio比较奇葩得把new char[100]{"fff"}这样的直接写成字面值常量 而window 的jni则必须使用这种 -- 尴尬 然后发现2个jni文件 ...
- 几种常见的建模工具比较(ROSE、PowerDesigner、VISIO、EA)
1.ROSE ROSE是直接从UML发展而诞生的设计工具,它的出现就是为了对UML建模的支持,ROSE一开始没有对数据库端建模的支持,但是在现在的版本中已经加入数据库建模的功能.ROSE主要是在开发过 ...
- PowerDesigner使用教程3
from:http://www.cnblogs.com/langtianya/archive/2013/03/08/2949118.html PowerDesigner是一款功能非常强大的建模工具软件 ...
- PowerDesigner的使用二
PowerDesigner是一款功能非常强大的建模工具软件,足以与Rose比肩,同样是当今 最著名的建模软件之一.Rose是专攻UML对象模型的建模工具,之后才向数据库建模发展,而PowerDesig ...
- PowerDesigner的文章
来自iteye的PowerDesigner的相关文章,写的不错,这里引用一下 PD12 建模工具的使用 博客分类: PowerDesigner .net http://jpkc.zjbti.net. ...
- audino python_用 Python 实现 PowerDesigner 数据模型文件的处理
简述 目前在银行研发中心做项目管理工作.我们单位的项目经理从需求.设计.编码到测试以及上线,都要有很大程度的参与.没有工具支持,很多事根本忙不过来.或者没法在有限的时间里保证项目质量. 大概半年前开始 ...
- PowerDesigner生成数据库设计文档
1.说明 使用PowerDesigner设计数据库表, 基于PowerDesigner设计数据库表, 生成数据库对应的表设计文档, PowerDesigner支持生成HTML.RTF和本地格式的文档, ...
- PowerDesigner模型分类
原文:PowerDesigner模型分类 版权声明:本文为博主原创文章,未经博主允许不得转载. https://blog.csdn.net/zjws23786/article/details/8005 ...
最新文章
- centos7配置 console口_centos7基本配置
- ​基于BCI的现代神经反馈有助于认知增强
- C# webBrowser禁止在新窗口打开,强制在本窗口打开
- python能做什么效果_python对于做SEO主要有什么作用?
- mysql error innodb_MySQL无法启动: InnoDB Error:unable to create temporary file
- 人工智能__一种现代方法 绪论导读
- 计算机网络基础简答题
- Registration based Few-Shot Anomaly Detection
- 视频预测算法vid2vid比MCNet好在哪里?
- 教你有效清理C盘空间不足的方法
- 使用 ClickHouse 构建通用日志系统
- win10安装steam有损计算机,win10系统steam磁盘写入错误怎么办 steam磁盘写入错误的解决教程...
- FPGA 频率计实验
- 分享优质JAVA学习网站
- java字符串转成utf-8_将字符串的编码格式转换为utf-8
- 幼儿英语课前热身小游戏
- linux下keytool生成证书_使用keytool 生成证书
- Python爬虫——Scrapy框架
- 面向对象:杭州的下雪天,想带你去湖心亭看雪
- 了解 IOPS、延迟和存储性能
热门文章
- 理解字节填充和零比特填充
- 滴滴网约车抽成高达25%还“入不敷出”,为哪般?
- 从postscript文件到pdf并裁减转动
- 使用人声分离在线网站获得音乐
- Elasticsearch——分页查询FromSize VS scroll
- $.ajax post data error,stay in curren page
- 【LeetCode 459 】重复的子字符串
- Spring Boot 使用AES前后端传递参数加解密
- abs 三种功能及代码详解 matlab函数
- 《怪诞行为学--丹.艾瑞里》知识点总结