powerdesigner 设置自动增长列(identity),和默认值

来源:互联网 发布:知乎广告合作 编辑:程序博客网 时间:2024/06/05 00:15

一、powerdesigner 设置自动增长列(identity),和默认值

1、在物理数据模型下设置
2、DBMS设置问题,当是SQL2000时,DBMS一定要选SQL2000
DataBase-->Chang Current DBMS-->选择Microsoft SQL Server 2000

当是SQL2000时 双击实体表,选中Columns,在你所要设为自增型的键上(比如你的id)双击,弹出一个Column Properties对话框,右下角有一个Identify的选择框,选中它OK,就可以了
当是SQL2005时,列类型设为numeric


3、默认值的设置

双击实体表,双击Columns,选中satanddard checks里面default就是默认值了

4、种子和步长设置

双击实体表,双击设为Identity的列,在Microsoft选项卡里面设置Identity seed and increment 的值即可。
如:1,1