在设计数据库表的时候,设计好了,导出sql的时候发现,字段没有注释,难道name不是注释么?什么comment是注释,这么多表和字段,难道要一个一个复制name到comment么?
在网上找了半天,找到了一个好方法,可以让默认的注释为name或让默认的名字为注释。记录下来备用:)
点击PowerDesigner->Tools->Execute Commands->Edit/Run Scripts
在弹出的窗口输入下面代码(对整个CDM或PDM)有效
1.让默认的注释为name
Option Explicit
ValidationMode = True
InteractiveMode = im_Batch
Dim mdl ' the current model
' get the current active model
Set mdl