当前位置:网站首页>PowerDesigner creates a database model (conceptual model example)
PowerDesigner creates a database model (conceptual model example)
2022-07-28 14:16:00 【Full stack programmer webmaster】
Hello everyone , I meet you again , I'm your friend, Quan Jun .
1. start-up PowerDesigner
( I am using PowerDesigner16.7 Cracked versions ) Choose to create a new conceptual model for database design E-R Model aided design
2. Design of conceptual model
Entity : Select solid graphics , stay “ Drawing ” Click to draw out the entity , Double click to name it , choice Attributes Add all its properties . Pay attention to all name Can be marked in Chinese , With good understanding ; however code It must be marked in English , To facilitate the operation and processing of the Library (PowerDesigner Convert database .sql file , All table names , Attributes, etc code). Name each attribute , And select the corresponding data type ,PowerDesigner Support all SQLserver2017 The type of data in , All optional types are available . In the attribute column M Indicates that mandatory cannot be empty ;P Indicates that the main code is Prime key;D Presentation display Display.
Click on Entity, Then move the mouse , Click once in the main panel to add an entity
Switch back to normal mouse mode , Double click the added entity , The dialog box for setting properties pops up , stay General In the tab, you can set the Name and Code Equal attribute :
Switch to Attributes Tab can add attributes of entities :
After setting, see the following figure :
3. Test model
from [Tools] From the menu [Check Model]. here , Will appear [Check Model Parameters] Dialog box . You can use the default parameters . single click [ determine ] here , stay [Result List] It will show [Check Model] Result .
4. Generating physical models
When CDM If there is no error in the diagram check, you can select [Tools], appear [Generate Physical Data Model… ] Options , Parameters can be set , Then click OK , Generating physical models .
5. Generate database
Remember to change before generating the database DBMS:
On the menu Database Choose Generate Database Options -> choice SQL server2017 Database system -> Select the file storage path -> Generate database , Such as project.sql file . Then you can enter SQL server2017 in , After creating a new database , open project.sql And execute the file , Just by PowerDesigner All objects in the designed database , Thus completed the entire database design .
Confirm after changing the parameters , Then I open VS2019 Connect to database , And then run sql File created database ( First, right-click to create the database ,sql Files can be directly dragged into the query window , Change the database name established by the Database window , Then run it ):
For specific steps, see :https://www.cnblogs.com/xdp-gacl/p/3619068.html
Publisher : Full stack programmer stack length , Reprint please indicate the source :https://javaforall.cn/128381.html Link to the original text :https://javaforall.cn
边栏推荐
- 论文研读--Masked Generative Distillation
- Niuke multi school link with level editor i- (linear DP)
- [try to hack] hfish honeypot deployment
- [utils] fastdfs tool class
- Entering the world of audio and video -- flv video packaging format
- QT self-made soft keyboard is the most perfect and simple, just like its own virtual keyboard
- 【Try to Hack】HFish蜜罐部署
- 数据库优化 理解这些就够了
- Thesis study -- masked generative disintegration
- Custom Configuration Sections
猜你喜欢

什么是自旋锁 自旋锁是指当一个线程尝试获取某个锁时,如果该锁已被其他线程占用,就一直循环检测锁是否被释放,而不是进入线程挂起或睡眠状态。 /** * 为什么用自旋锁:多个线程对同一个变量

Entering the world of audio and video -- flv video packaging format

Thesis study -- masked generative disintegration

LeetCode 0143. 重排链表

MVC model: calendar system

安全保障基于软件全生命周期-Istio的授权机制

QT自制软键盘 最完美、最简单、跟自带虚拟键盘一样

如何有效进行回顾会议(上)?

How did Dongguan Huawei cloud data center become a new model of green data center?

Security assurance is based on software life cycle - networkpolicy application
随机推荐
修订版 | 目标检测:速度和准确性比较(Faster R-CNN,R-FCN,SSD,FPN,RetinaNet和YOLOv3)...
Implementation of StrCmp, strstr, memcpy, memmove
Istio IV fault injection and link tracking
Do you really know esmodule
软件测试工程师的职业规划
解决uniapp微信小程序canvas不能引入字体的问题
83. (cesium home) how the cesium example works
a标签_文件下载(download属性)
数据库系统概论(第5版)补充习题——第一章 绪论
作为一个程序员,如何高效的管理时间?
多级缓存方案
Using reflection to build a menu spanning tree
Long closed period private placement products reappearance industry insiders have different views
走进音视频的世界——FLV视频封装格式
【Utils】FastDFS工具类
Power amplifier and matching network learning
Multithreading and high concurrency (III) -- source code analysis AQS principle
关于栈的理解以及实际应用场景
QT自制软键盘 最完美、最简单、跟自带虚拟键盘一样
jenkins