PowerDesigner生成SQL語句的過程

2021-08-31 08:00:44 字數 429 閱讀 6838

powerdesigner12生成sql語句的過程

摘自:powerdesigner生成sql語句的過程:

1.建立概念模型

啟動powerdesigner-->新建概念模型(conceptual data model)(儲存)--->建立實體-->建立關係 (1:1,1:n,n:m)-->建立屬性(id,...)id為主鍵和標記-->儲存

2.建立物理模型

在概念模型的基礎上建立物理模型 選中概念模型-->建立物理資料模型(physical data model)-->生成新的物理資料模型-->選擇資料庫 (mysql,db2,oracle,sybase,sql server)-->填好名稱-->儲存

3.匯出sql語句 資料庫(database)-->生成資料庫(generate database)-->*.sql(儲存為sql語句)

powerdesigner正向生成mysql

選擇database genarate database選單,在開啟的視窗中選擇options頁籤,找到key選項,系統預設為outside,如圖 生成的建表指令碼是 create table test action id int 32 not null auto increment,action ...

由PowerDesigner物理模型生成sql語句

tools execute commands edit run script 在開啟的視窗中 past 下面的 option explicit validationmode true interactivemode im batch dim mdl the current model get the...

利用PowerDesigner批量生成測試資料

原貼 http community.csdn.net expert topic 4288 4288923.xml?temp 1241571 主要解決方法 a 在powerdesigner 建表 b 然後給每乙個表的字段建立相應的摘要檔案 步驟如下 model test data profiles 配...