1、你在powerdesigner按CTRL+G進入產生資料庫界面,選擇你的表和生成的SQL文件路徑名稱;
2、有兩種方式,一種是生成腳本,一種是通過ODBC連接目標資料庫生成表。
3、如果選擇生成腳本,你可以得到一個你命名的SQL文件;
4、如果要通過ODBC連接目標資料庫生成表,你要先定義好ODBC的鏈接。
5、建議用生成SQL腳本方式
2. 請問powerdesigner,建立好模型後,怎麼導出sql腳本。
設置好要導出的資料庫後,按ctrl+g 再選 priview 選項卡。
3. 使用powerdesigner設計資料庫生成sql腳本怎麼用
生成腳本可以到
資料庫系統
上執行,把設計實現成具體的資料庫。
4. 如何把powerdesigner中的表生成sql語句
首先在
tools->physical
data
Model->選擇要轉換成的資料庫
轉換成
物理模型
,然後
選擇
database->Generate
Database
生成
sql語句
5. powerdesigner怎麼導入sql
將.sql文件導入powerdesigner的步驟是本文我們主要要介紹的內容,步驟如下:
第一步:將要導入的庫的所有表的表結構(不要表數據,只要表結構)導出成一個.sql文件。
第二步:在powerdesinger里找到 File >> Reverse Engineer >> Database ,如下圖
圖二,選「Using script files」,點左側的添加按鈕,講XXX.sql文件添加,然後選擇確定。就可以成功地導入了。
關於將.sql文件導入powerdesigner的操作就介紹到這里了.
6. powerdesigner將Mysql轉換成sql server 求助大師幫忙!!!需要具體的實現步驟!!!
powerdesigner將Mysql轉換成sql server的方法:
打開pdm文件。
打開個圖表。
出現database菜單。
選擇「change current DBMS...」。
選擇資料庫的窗口。
在「NEW DBMS"的下拉框里選擇」sqlserver「就可以了。
7. powerdesigner表怎樣轉換sql語句
首先在 tools->physical data Model->選擇要轉換成的資料庫 轉換成物理模型,然後 選擇 database->Generate Database 生成sql語句
8. powerdesigner 怎麼導出sql
1.滑鼠單擊Database菜單;
2.選擇Generate Database 選項;
3.先可以點擊Preview,查看SQL語句;
4.回到General選項卡下;
a.設置好導出sql文件存放路徑;
b.設置好到處腳本文件名。
5.然後點擊確定按鈕;
6.導出成功;
7.打開sql腳本文件,內容如下:
9. powerdesigner怎麼導出sql
PowerDesigner使用學習一
PowerDesigner
PowerDesigner最初由Xiao-Yun Wang(王曉昀)在SDP Technologies公司開發完成。
PowerDesigner是Sybase的企業建模和設計解決方案,採用模型驅動方法,將業務與IT結合起來,可幫助部署有效的企業體系架構,並為研發生命周期管理提供強大的分析與設計技術。
powerDesigner pdm轉換成sql
一、選擇菜單欄上Database
六、導出的sql是沒有注釋的,如果需要注釋
Tools >>Excute Commands >> Edit/Run Script打開的窗口中添加以下信息
'******************************************************************************
'* File: name2comment.vbs
'* Purpose: Database generation cannot use object names anymore
' in version 7 and above.
' It always uses the object codes.
'
' In case the object codes are not aligned with your
' object names in your model, this script will
' the object Name onto the object Comment for
' the Tables and Columns.
'
'* Title:
'* Version: 1.0
'* Company: Sybase Inc.
'******************************************************************************
Option Explicit
ValidationMode = True
InteractiveMode = im_Batch
Dim mdl ' the current model
' get the current active model
Set mdl = ActiveModel
If (mdl Is Nothing) Then
MsgBox "There is no current Model "
ElseIf Not mdl.IsKindOf(PdPDM.cls_Model) Then
MsgBox "The current model is not an Physical Data model. "
Else
ProcessFolder mdl
End If
' This routine name into comment for each table, each column and each view
' of the current folder
Private sub ProcessFolder(folder)
Dim Tab 'running table
for each Tab in folder.tables
if not tab.isShortcut then
'把表明作為表注釋,其實不用這么做
tab.comment = tab.name
Dim col ' running column
for each col in tab.columns
'把列name和comment合並為comment
col.comment= col.name
next
end if
next
Dim view 'running view
for each view in folder.Views
if not view.isShortcut then
view.comment = view.name
end if
next
' go into the sub-packages
Dim f ' running folder
For Each f In folder.Packages
if not f.IsShortcut then
ProcessFolder f
end if
Next
end sub
執行。再執行步驟一到步驟五
10. powerdesigner 怎麼導出sql
滑鼠單擊Database菜單;
2
選擇Generate Database 選項;
3
先可以點擊Preview,查看SQL語句;
4
回到General選項卡下;
a.設置好導出sql文件存放路徑;
b.設置好到處腳本文件名。
5
然後點擊確定按鈕;
6
導出成功;