如何在 Power Designer 15 中从 ER 图中生成 SQL 表?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/6086787/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-01 10:40:53  来源:igfitidea点击:

How to generate SQL tables from ER diagram in Power Designer 15?

sqlsql-server-2008diagramentity-relationshippowerdesigner

提问by aden

I want to generate Sql tables from ER diagram in Powerdesigner ,but ,I don't know how can i do that? Which Tools i should use?

我想在 Powerdesigner 中从 ER 图生成 Sql 表,但是,我不知道我该怎么做?我应该使用哪些工具?

回答by pascal

I guess you have a Conceptual Data Model to represent your ER diagram.

我猜您有一个概念数据模型来表示您的 ER 图。

You first need to generate a Physical Data Model from it, using Tools > Generate Physcical Data Model, picking the specific DBMS you want to use, Microsoft SQL Server 2008, available for PD 15.0 and up.

您首先需要从中生成物理数据模型,使用Tools > Generate Physcical Data Model,选择您要使用的特定 DBMS,Microsoft SQL Server 2008,可用于 PD 15.0 及更高版本。

And then generate the script using Generate > Generate Databaseas mentionned in the first comment.

然后使用Generate > Generate Database第一条评论中提到的方法生成脚本。

The need to convert the ER diagram into a Physical DAta Model, is that the ER diagram could use some concepts which need to be resolved before going to SQL; and miss some concept specific to the databaase implementation (like performance indexes).

将ER图转换为物理数据模型的需要,是ER图可以使用一些概念,在转SQL之前需要解决;并遗漏了一些特定于数据库实现的概念(如性能指标)。