1、powerdesigner 设置默认值。
用工具打开表,找到Columns,然后选中你要修改的字段值,点属性。
找到Standard Checks,default选择即可。如下图:
2、设置不为空约束等。
如下图:
在Column Properties对话框中勾选“mandatory”就是not null。
写SQL,(MSSQL) -加字段,设约束
alter table teacher add sex int not null default 0;
版权声明:本文为programmer_sir原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。