powerdesigner中varchar注释不显示
时间: 2024-04-25 17:23:40 浏览: 32
在 PowerDesigner 中,VARCHAR 字段的注释默认是不显示的。如果你想要显示注释,可以按照以下步骤进行操作:
1. 打开 PowerDesigner 并打开你的数据模型。
2. 在物理模型中,选择你想要显示注释的表。
3. 右键点击表,在弹出的菜单中选择 "Properties"(属性)。
4. 在属性窗口中,选择 "Columns"(列)选项卡。
5. 在列列表中找到你想要显示注释的 VARCHAR 字段,并选中它。
6. 在右侧的 "Properties"(属性)面板中,找到 "Comment"(注释)字段。
7. 输入你想要显示的注释内容。
8. 确认并保存模型。
现在,当你查看该表时,VARCHAR 字段的注释应该会显示出来了。请注意,这个功能可能在不同版本的 PowerDesigner 中有所不同,所以具体步骤可能会有细微差异。
相关问题
powerdesigner显示表注释
要在PowerDesigner中显示表注释,可以按照以下步骤操作:
1. 打开PowerDesigner并打开相应的数据模型。
2. 在左侧的“物理模型”栏中选择要查看注释的表。
3. 在右侧的“属性”栏中,找到“注释”一栏,可以看到该表的注释内容。
4. 如果注释内容过长,可以点击“注释”一栏右侧的“编辑”按钮,进入注释编辑界面进行编辑和查看。
5. 编辑完成后,点击“确定”按钮保存修改。
通过以上步骤,就可以在PowerDesigner中方便地查看和编辑表注释了。
powerdesigner让注释显示
要让PowerDesigner中的注释显示,可以使用以下代码:
Option Explicit
ValidationMode = True
InteractiveMode = im_Batch
Dim mdl ' 当前模型
' 获取当前活动模型
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 a Physical Data model."
Else
ProcessFolder mdl
End If
' 这个过程将每个表、每个列和每个视图的名称复制到注释中
Private Sub ProcessFolder(folder)
Dim Tab ' 当前表
' 对于每个表
For Each Tab In folder.Tables
If Not Tab.IsShortcut Then
Tab.Comment = Tab.Name
Dim col ' 当前列
' 对于每个列
For Each col In Tab.Columns
col.Comment = col.Name
Next
End If
Next
Dim view ' 当前视图
' 对于每个视图
For Each view In folder.Views
If Not view.IsShortcut Then
view.Comment = view.Name
End If
Next
' 进入子包
Dim f ' 当前子包
For Each f In folder.Packages
If Not f.IsShortcut Then
ProcessFolder f
End If
Next
End Sub
这段代码将当前模型中每个表、列和视图的名称复制到注释中,以便在PowerDesigner中显示。
相关推荐
![docx](https://img-home.csdnimg.cn/images/20210720083331.png)
![vbs](https://img-home.csdnimg.cn/images/20210720083646.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)