PowerDesigner MySQL自动生成View的脚本的方法

来源:互联网 发布:大数据培训就业多少钱 编辑:程序博客网 时间:2024/04/29 05:52
打开使用MySQL5.0的PDM之后,在菜单里选择Database-> Edit   Current   DBMS..
确认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
确定保存。
原创粉丝点击