没有合适的资源?快使用搜索试试~ 我知道了~
powerDesigner与Oracle相互倒数据技巧
需积分: 9 9 下载量 48 浏览量
2012-11-02
17:27:36
上传
评论
收藏 10KB TXT 举报
温馨提示
试读
7页
PowerDesigner中批量根据对象的name生成comment的脚本 PowerDesigner中逆向工程将数据库中comment脚本赋值到PDM的name
资源推荐
资源详情
资源评论
1 导出表结构
一般用pl/sql Developer的工具->导出用户对象,然后选择你要导出的表或其它,导出来的是sql脚本
2 oracle表结构---导入到powerDesigner
powerDesigner---》dataBaseReverseEngineering options
Open PDM -- Tools -- Execute Commands -- 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"
一般用pl/sql Developer的工具->导出用户对象,然后选择你要导出的表或其它,导出来的是sql脚本
2 oracle表结构---导入到powerDesigner
powerDesigner---》dataBaseReverseEngineering options
Open PDM -- Tools -- Execute Commands -- 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
'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
Dim col 'running column
for each col in tab.columns
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
Dim col 'running column
for each col in tab.columns
剩余6页未读,继续阅读
资源评论
aaaaaliu
- 粉丝: 1
- 资源: 49
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功