欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  科技

powerdesigner15创建数据库生成脚本

程序员文章站 2023-10-23 10:31:08
powerdesigner15创建数据库生成脚本...

ctrl + shift + x,打开脚本编辑界面,使用vbscript编写脚本

powerdesigner15创建数据库生成脚本

点击帮助按钮,可以打开ole help,“libraries >> pdpdm”中可以查看内置的类库。“appendix >> code sample”中可以查看编码的示例。

powerdesigner15创建数据库生成脚本

在“d:\program files (x86)\sybase\powerdesigner 15\vb scripts”中可以看到系统内置的vbs文件格式的脚本。

powerdesigner15创建数据库生成脚本

脚本示例


代码如下:

【错误1】 “constraint name uniqueness”

分析:引用的约束名冲突

方法1,主菜单model >> referenses >> fk constraint name 查找相同的相同的项

方法2,在弹出错误的项目中,点击鼠标右键,选择“automatic correction”