打開使用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
確定保存。