Home > Database > Mysql Tutorial > body text

PowerDesigner生成Access数据库

WBOY
Release: 2016-06-07 15:44:21
Original
1261 people have browsed it

1、打开PowerDesigner,设置PowerDesigner的当前数据库为Access; 2、在PowerDesigner中新建表结构(物理模型); 3、PowerDesigner菜单中:Database - Generate Database...(快捷键Ctrl+G); 在弹出的对话框中,设置要生成数据库脚本的Directory和File na

1、打开PowerDesigner,设置PowerDesigner的当前数据库为Access;

2、在PowerDesigner中新建表结构(物理模型);

3、PowerDesigner菜单中:Database -> Generate Database...(快捷键Ctrl+G);

     在弹出的对话框中,设置要生成数据库脚本的Directory和File name(文件名以dat做后缀)值;

     在弹出的对话框 -> Format选项卡中,设置Encoding为简体中文GB2312;

     最后点击"确定"按钮,生成数据库脚本;

4、双击打开\Tools\Access.mdb,注意:需要打开宏;

5、选择"Generate Access database from PowerDesigner Script file"

6、在"Select Database"中输入数据库的目标路径,或者使用右边的按钮选择路径;

7、在"Script file"中输入上面步骤中生成的脚本文件的路径,或者使用右边的按钮选择路径;

8、最后点击"Create";

9、稍等片刻,完成从PowerDesigner中生成的脚本创建Access数据库。

 

原文:http://wiflish.iteye.com/blog/973007

 

 

注意点:

1、varchar2的长度最大不能超过255,否则会出现“类型不匹配”之类的错误提示,

所以需要将超过255长度字段的类型修改为text。

2、Access不支持numberic类型,需要将该类型修改为 number。

3、\Tools\Access.mdb文件中还有一个从Access数据库反向生成脚本的功能

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!