由PowerDesigner物理模型生成sql语句
来源:互联网 发布:海关数据库 编辑:程序博客网 时间:2024/06/11 05:56
Tools-->Execute Commands-->Edit/Run Script 在打开的窗口中 past 下面的代码:
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
'This routine copy name into code for each table, each column and each view
'of the current folder
Private sub ProcessFolder(folder)
Dim Tab 'running table
for each Tab in folder.tables
if not tab.isShortcut then
tab.comment = tab.name + tab.comment '此处任意设置表的注释,此处为表名和注释一起
Dim col ' running column
for each col in tab.columns
col.comment= col.name + col.comment
next
end if
next
Dim view 'running view
for each view in folder.Views
if not view.isShortcut then
view.comment = view.name
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
然后运行Run
Database --> Generate Database 这时就可以生成带有comments为物理模型中Name属性的SQL语句了。
- 由PowerDesigner物理模型生成sql语句
- PowerDesigner导入sql脚本生成物理模型
- PowerDesigner从新建物理模型到生成数据字典和SQL语句
- PowerDesigner之导入sql文件 生成数据库物理模型
- PowerDesigner 导入数据库建表SQL脚本生成物理模型
- PowerDesigner从DB2生成物理模型
- PowerDesigner连接MySQL逆向生成物理模型
- 使用powerdesigner导入sql脚本,生成物理模型,name和code都显示英文的解决方法
- PowerDesigner自动生成SQL语句
- powerdesigner PDM生成SQL语句
- 概念模型转换成物理模型并生成sql语句创建数据库 链接
- 【powerdesigner】【物理模型】
- PowerDesigner利用oracle11gR2中的表逆向生成物理模型
- PowerDesigner-生成物理数据模型
- PowerDesigner 7.1生成sql语句去掉双引号。
- PowerDesigner链接oracle生成sql语句
- 由pdm反向生成cdm,即由物理模型,反向生成逻辑模型;报错,怎么办?
- sql文件反向生成物理概念模型
- 安装apache作为负载均衡--集群4台tomcat 3300/s
- MTK6268-FAT
- 采用smarty开发的小论坛的学习总结
- MFC 操作XML 实例 (转)
- codeblock调试跟踪新版x264
- 由PowerDesigner物理模型生成sql语句
- 带有Cookie功能的HTTP访问函数,GET,PUT/POST
- 解决visual studio2008连接oracle的问题。
- 1063 JAVA大数阶乘
- Windows常用的几个组合键
- JAVA基础加强_高新技术_收获六
- 利用Socket搭建简单的Http服务器
- 给android模拟器赋予root权限
- 单链表