Powerdesigner 如何产生 Mysql 视图脚本?

来源:互联网 发布:合作软件开发平台 编辑:程序博客网 时间:2024/06/05 04:09

http://blog.itpub.net/3090/viewspace-694124/


适用Powerdesigner的版本是12.5,15.x


打开使用MySQL5.0的PDM之后,在菜单里选择Database-> Edit   Current   DBMS.. 
确认DBMS使用的是MySQL5.0 
打开左端树状结构Script-> Objects-> View 
1.选中Create,在右端的Value中写入 
   create   VIEW   [%R%?[   if   not   exists]]   %VIEW% 
   as 
   %SQL% 
2.选中Drop,在右端的Value中写入 
   drop   VIEW   if   exists   %VIEW% 
3.选中Enable,在右端的Value中选择Yes 
   确定保存。
0 0