1、第一种情况-无数据库表,但有数据模型
1.1 使用PowerDesigner已完成数据建模
您已经使用PowerDesigner完成数据库建模,如下图:

1.2 Report配置和导出
1、点击:Report->Reports,如下图:

2、点击:New Report,如下图:

3、打开New Report,给需要导出的报告起个名字,语言选择:Simplified Chinese,
报告模版选择:Standard Physical Report,然后点击OK,如下图:

4、除红框标识部分,如无必要以下部分均可删除,如下图:

5、删除后,一阵清爽,如下图:

6、导出报告,若需要word格式,请选择rtf,如下图:



7、报告最终样式,如下图:

2、第二种情况-有数据库表,无数据模型
2.1、通过powerdesigner逆向工程,生成数据模型
2.1.1、连接数据库,生成数据模型
1、File -> New Model,如下图

2、选择Physical Data, 数据库根据自己的数据库类型选择, 这里使用的是MySQL,如下图:

3、配置数据库连接,如下图:

4、配置数据库连接,如下图:

5、如配置完全正确,但连接测试时,有可能还会失败,如下图:

6、失败原因及问题解决
连接失败原因: powerdesigner基于32位的jvm内核。
问题解决:需要在本地安装32位的jdk,安装完成,电脑需要重启后生效,查看JDK版本:
32位JDK版本,如下图:

7、再次测试连接,如下图:

8、逆向工程,生成数据模型,如下图:
一次点击:File>Reverse Engineer>Database

9、选择mysql数据库,点击确定,如下图:

10、选择Using a data source,如下图:

11、按照以下所示步骤操作,如下图:

12、选择需要导出报告的数据,然后选择需要导出的表,如下图:

13、全选后,数据模型展示如下图

14、 Report配置和导出
1、点击:Report->Reports,如下图:

2、点击:New Report,如下图:

3、打开New Report,给需要导出的报告起个名字,语言选择:Simplified Chinese,
报告模版选择:Standard Physical Report,然后点击OK,如下图:

4、除红框标识部分,如无必要以下部分均可删除,如下图:

5、删除后,一阵清爽,如下图:

6、导出报告,若需要word格式,请选择rtf,如下图:


2.1.2、通过sql脚本,生成数据模型
此种方式的好处,不用担心数据库连接不上,或出现错误的问题,只需要导出数据库的结构即可。
1、 逆向工程,生成数据模型,如下图:
一次点击:File>Reverse Engineer>Database

2、选择mysql数据库,点击确定,如下图:

3、使用数据文件,如下图:


4、生成数据模型,如下图:

5、导出数据报告,请重复1.2操作,此处不再赘述。
