PowerDesigner使用:[2]自定义数据结构
1、设置姓名的自定义数据结构ut_name为varchar(16)。
![PowerDesigner使用:[2]自定义数据结构](https://exp-picture.cdn.bcebos.com/994f412043715fdb23cc4a89468920c5270f8c43.jpg)
![PowerDesigner使用:[2]自定义数据结构](https://exp-picture.cdn.bcebos.com/b87bd38920c5260f92d92e39d2de450789018943.jpg)
2、设置年龄的带有默认值的自定义数据结构ut_nl为int,默认值为1。
![PowerDesigner使用:[2]自定义数据结构](https://exp-picture.cdn.bcebos.com/dccb47de45078801279c26f2b18ca608a40f8243.jpg)
3、设置好ut_nl后打开其属性界面,如下图
![PowerDesigner使用:[2]自定义数据结构](https://exp-picture.cdn.bcebos.com/3931cb413a8ca60886e3674fdb8c9bcec6f8fe43.jpg)
4、在standard check标签页设置defaul,首先创建默认值
![PowerDesigner使用:[2]自定义数据结构](https://exp-picture.cdn.bcebos.com/a44e8afc508c9bcee01479c4d6dd884ce44afa43.jpg)
![PowerDesigner使用:[2]自定义数据结构](https://exp-picture.cdn.bcebos.com/c6b994775ddd884ccea6dc946cef28066a01f643.jpg)
5、设置好默认值后,返回设置ut_nl的默认值,选择刚设置的默认名称
![PowerDesigner使用:[2]自定义数据结构](https://exp-picture.cdn.bcebos.com/2e66f9ef28066b01a231c0f33df39187021cf343.jpg)
6、设置列的数据类型,设置domain属性,选择刚设置的自定义数据结构。
![PowerDesigner使用:[2]自定义数据结构](https://exp-picture.cdn.bcebos.com/3201a8f39187031cac2c5c4f6a86242fa972ec43.jpg)
![PowerDesigner使用:[2]自定义数据结构](https://exp-picture.cdn.bcebos.com/9881b1fce186242f919e67ac35e434daf15ee843.jpg)
7、实现创建库表的脚本如下。
![PowerDesigner使用:[2]自定义数据结构](https://exp-picture.cdn.bcebos.com/16a84fe10ef8585683d15b9753e9ccd2ba66cd43.jpg)
声明:本网站引用、摘录或转载内容仅供网站访问者交流或参考,不代表本站立场,如存在版权或非法内容,请联系站长删除,联系邮箱:site.kefu@qq.com。
阅读量:92
阅读量:45
阅读量:88
阅读量:57
阅读量:44