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
导出成功;