使用PowerDesigner工具(12.5版本):
1.制作好CDM(Conceptual Data Model)概念数据模型之后,转化为PDM(Physical Data Model)物理数据模型方法:在CDM界面---工具
![](https://s1.51cto.com/attachment/201103/202127923.jpg)
图1
2.将CDM转化为OOM(Object-Oriented Model)面向对象模型,如图1的上一个菜单项。
3.将PDM生成sql脚本,方法如下图:在PDM界面---Database或者直接(Ctrl + G)即可。
![](https://s1.51cto.com/attachment/201103/203016429.jpg)
图2
转载于:https://blog.51cto.com/xfqxj/516199