从SQL文件逆向工程到PDM:
①选择file -> Reverse Engineer - > Database
②在General选项卡中选择MySQL数据库,点击确定。
③using script file 选择你的sql文件,最后选择确定。
修改column的name和Code同步问题
PowerDesigner中,但修改了某个字段的name,其code也跟着修改,这个问题很讨厌,因为一般来说,name是中文的,code是字段名。
解决方法如下:
1、选择Tools->GeneralOptions...菜单,出现General Options对话框。
2、从Category中选择Dialog项。
3、取消右边“Name to Code mirroring”复选框。如下图:
代码一:将Name中的字符COPY至Comment中
Option Explicit
ValidationMode = True
InteractiveMode = im_Batch
Dim mdl ' the current model
' get the current ac