今天遇到了个问题,就是有PowerDesigner的设计图,能生成oracle的视图,不能生成mysql,在网上找到了解决方案,

非常感谢各位网友的分享,这个不是抄袭,主要是为了让更多的人知道这种解决方案。

PowerDesigner导出脚本里包含视图

打开使用MySQL5.0的PDM之后,在菜单里选择

Database-> Edit   Current   DBMS..

  www.2cto.com

确认DBMS使用的是MySQL5.0

打开左端树状结构Script-> Objects-> View

选中Create,在右端的Value中写入

create   VIEW   [%R%?[   if   not   exists]]   %VIEW%

  as

%SQL%

选中Drop,在右端的Value中写入

drop   table   if   exists   %VIEW%

选中Enable,在右端的Value中选择Yes

确定保存。
05-07 11:59
查看更多