PowerDesigner导出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 
确定保存。

猜你喜欢

转载自blog.csdn.net/yanzel/article/details/19021701