加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 大数据 > 正文

powerdesign实用技巧

发布时间:2020-12-16 23:06:12 所属栏目:大数据 来源:网络整理
导读:导出的建表脚本表名出现引号 ================================ 是因为在powerdesign的设置问题,点在菜单DatabaseEdit Current DBMS...后,在弹出窗口左边的树中找到 ScriptSqlFormatCaseSensitivityUsingQuote,把该值设为false便可以了。 powerdesign导出n

导出的建表脚本表名出现引号
================================
是因为在powerdesign的设置问题,点在菜单Database>Edit Current DBMS...后,在弹出窗口左边的树中找到

Script>Sql>Format>CaseSensitivityUsingQuote,把该值设为false便可以了。

powerdesign导出name作为comment

================================

首先打开PDM,tools->execute commands->edit/run script
运行以下脚本,将name拷贝为comment
Vb代码
  1. OptionExplicit
  2. ValidationMode=True
  3. InteractiveMode=im_Batch
  4. Dimmdl'thecurrentmodel
  5. 'getthecurrentactivemodel
  6. Setmdl=ActiveModel
  7. If(mdlIsNothing)Then
  8. MsgBox"ThereisnocurrentModel"
  9. ElseIfNotmdl.IsKindOf(PdPDM.cls_Model)Then
  10. MsgBox"ThecurrentmodelisnotanPhysicalDatamodel."
  11. Else
  12. ProcessFoldermdl
  13. EndIf
  14. 'Thisroutinecopynameintocodeforeachtable,eachcolumnandeachview
  15. 'ofthecurrentfolder
  16. PrivatesubProcessFolder(folder)
  17. DimTab'runningtable
  18. foreachTabinfolder.tables
  19. ifnottab.isShortcutthen
  20. tab.comment=tab.name
  21. Dimcol'runningcolumn
  22. foreachcolintab.columns
  23. col.comment=col.name
  24. next
  25. endif
  26. next
  27. endsub
然后在database->generate database->options->table&column中分别选中table和column的coment,导出表的时候,即可导出comment

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读