powerdesign导出SQL时自己主动生成凝视
1、使用脚本的方式
在里面执行
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 comment 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
'把列name和comment合并为comment
col.comment= col.name
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后
最新文章
- 在eclipse安装svn插件
- JavaScript基本语法(三)
- Unity3d游戏场景优化杂谈(4)
- 项目里总结出来的log4j模板
- laravel 中 与前端的一些事4 之合并压缩静态文件
- Office 2010启动时出现无法验证此应用程序的许可证的解决
- WPF 绑定五(本身就是数据源)
- error 和 exception 有什么区别?
- Chapter 1 First Sight——34
- 知乎上看到的关于类.class,对象.getClass
- webstorm git团队开发技巧总结(一)
- ranker.go
- VisualStudio移动开发(C#、VB.NET)Smobiler开发平台——AlbumView相册控件的使用方式
- 44-0-STM32的CAN外设
- Python爬取今日头条段子
- Mysql加锁过程详解(3)-关于mysql 幻读理解
- <;记录>; axios 模拟表单提交数据
- (转)在.net中检索HTTP请求
- 利用组策略API 编辑GPO(Group Policy Object)
- 两种JS事件流
热门文章
- Eclipse 下载 开源项目 maven依赖丢失和 Deployment Assembly 丢失
- 【软件构造】第八章第三节 代码调优的设计模式和I/O
- VS2015提示:未安装Style的Visual Studio语言支持,代码编辑Intellisense将不可用。服务器控件的标记Intellisense可能不起作用
- LeetCode 翻转字符串里的单词
- mysql单实例多库与多实例单库
- 解决每次打开pycharm直接进入项目的方法
- C语言学习10
- 03 数据解析-Xpath
- GIL和copy
- JSP中使用<;c:forEach>;标签循环遍历元素