博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
powerdesigner导出SQL时大写转换
阅读量:7233 次
发布时间:2019-06-29

本文共 1066 字,大约阅读时间需要 3 分钟。

打开物理模型,点击菜单“Tools->Execute Commands -> Edit/Run Script...",或者快捷键(Ctrl+Shift+X)执行下面vbscript脚本

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.code = tab.name 
         Dim col ' running column 
         for each col in tab.columns 
            col.code= UCase(col.code) 
         next 
      'end if 
   next

'  Dim view 'running view 

'   for each view in folder.Views 
   '   if not view.isShortcut then 
       '  view.code = 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

就可以将code从小写转为大写.就可以不必粘贴过来再改了. 

转载地址:http://yzpfm.baihongyu.com/

你可能感兴趣的文章
通用权限管理系统中的分页解决方案
查看>>
Nutch搜索引擎系列(目录)
查看>>
ubuntu卸载qq2012
查看>>
让OMCS支持更多的视频采集设备
查看>>
node-webkit教程(7)Platform Service之APP
查看>>
PHP之XML节点追加操作讲解
查看>>
XSS零碎指南
查看>>
Linux ALSA声卡驱动之七:ASoC架构中的Codec
查看>>
unicode编码、字符的转换和得到汉字的区位码
查看>>
SQL手工注入
查看>>
设计模式总结篇系列:适配器模式(Adapter)
查看>>
利用FlashPaper实现类似百度文库功能
查看>>
视频码率,帧率和分辨率的联系与差别
查看>>
eclipse生成可执行jar包[转]
查看>>
Scala:Object-Oriented Meets Functional
查看>>
libvirt之virt-install
查看>>
分享我对 ASP.NET vNext 的一些感受,也许多年回过头看 So Easy!
查看>>
程序员生存定律--细论影响人生成绩的四个要素(2)
查看>>
你没见过吧?16款形态各异的加载进度条设计
查看>>
url rewrite
查看>>