PowerDesigner 如何设置表中主键 `idx_parent_id` (`parent_id`)
在 PowerDesigner 中设置表中的键 'idx_parent_id' ('parent_id'),可以按照以下步骤进行操作:
-
打开 PowerDesigner 软件并打开相应的物理数据模型。
-
在物理数据模型中找到要设置键的表,并打开该表。
-
在表的结构视图中,找到 'parent_id' 列,并选中该列。
-
在右侧的属性窗口中,找到 '索引' 选项卡,并点击该选项卡。
-
在索引选项卡中,点击 '添加' 按钮,以添加一个新的索引。
-
在新索引的属性窗口中,设置以下属性:
- 名称:idx_parent_id
- 列:选择 'parent_id' 列
- 类型:选择合适的索引类型,如 '普通' 或 '唯一' 等
- 排序:选择适当的排序方式,如 '升序' 或 '降序' 等
-
确认设置后,点击 '应用' 或 '确定' 按钮,以保存并应用设置。
通过以上步骤,您就可以在 PowerDesigner 中成功设置表中的键 'idx_parent_id' ('parent_id')。
原文地址: https://www.cveoy.top/t/topic/b0yJ 著作权归作者所有。请勿转载和采集!