在 PowerDesigner 中,可以通过以下步骤设置表中的键 'idx_parent_id' ('parent_id'):

  1. 打开 PowerDesigner 并打开目标数据库模型。

  2. 导航到“物理模型”选项卡,找到要添加键的表。

  3. 右键单击该表,然后选择“编辑表”选项。

  4. 在“编辑表”对话框中,导航到“键”选项卡。

  5. 点击“添加”按钮添加一个新的键。

  6. 在“键名”字段中输入 'idx_parent_id'。

  7. 在“键列”字段中选择 'parent_id' 列。

  8. 点击“确定”按钮以保存并关闭“编辑表”对话框。

  9. 确保在 PowerDesigner 中保存模型的更改。

  10. 导出或生成目标数据库脚本以应用更改。

请注意,这只是 PowerDesigner 中设置表键的一种方法,具体步骤可能会因 PowerDesigner 版本和设置而有所不同。

PowerDesigner 表中设置 KEY `idx_parent_id` (`parent_id`) 指南

原文地址: https://www.cveoy.top/t/topic/b0uG 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录