1、powerdesigner 設置默認值。
用工具打開表,找到Columns,然後選中你要修改的字段值,點屬性。
找到Standard Checks,default選擇即可。如下圖:
2、設置不爲空約束等。
如下圖:
在Column Properties對話框中勾選“mandatory”就是not null。
寫SQL,(MSSQL) -加字段,設約束
alter table teacher add sex int not null default 0;
博主強烈推薦:https://blog.csdn.net/persistencegoing/article/details/84376427
希望大家關注我一波,防止以後迷路,有需要的可以加羣討論互相學習java ,學習路線探討,經驗分享與java求職
羣號:721 515 304