当前位置:网站首页>Learn to draw Er graph in an article
Learn to draw Er graph in an article
2022-06-23 07:46:00 【Autumn mountain code people】
What is? er chart ?
E-R Graph is also called entity relation graph , Is an entity that provides , Properties and contact methods , A conceptual model used to describe the real world . In layman's terms , When we understand the needs of the actual problem , There needs to be a way to express this requirement , The conceptual model is used to describe such requirements .
such as : Departments and majors in universities , And students' noumenon , Follow the following picture roughly er chart

er The basic elements in the diagram
Let's use the picture above to illustrate :
- Entity : Things that exist in practical problems and can be identified with each other
Like the one above : departments , major , Male students , Girl friend
- attribute : A property of an entity , We call them attributes
such as : The above picture can be used by departments : Department number , name , Attribute description of mailbox
A major can use a major code , Professional name Description
Male students can use their student ID , Name Description
- Entity set : A collection of entities with the same attributes ,(211……13, Ming Di ) It is an entity in the student entity set
- key : Attributes that uniquely identify entities are called keys , Keys are also attributes of entities , The attribute value as a key must be unique and cannot be empty . For example, student ID. 211……13 It can be called a key
- 1 Yes 1,1 For more than , Many to many ,3 Kind of
draw er Graph specification
Rectangle box : Represents an entity , Write the entity name in the box
Diamond frame : It means to contact , Write the contact name in the box
Oval box : Represents the property , Write the attribute name in the box
attachment : Entities and attributes , Entity and connection , Connection and attribute Use straight lines Connect ,
In the process of connection, the type of connection shall be marked on the line :
1 Yes 1: Contact each direction 1
1 For more than :1 The party who wrote 1, More than one party to write n
Many to many : Write in each direction n,m
example
Through the above explanation , Let's do an exercise .
Library management system should be no stranger , A brief analysis of , The discovery database mainly provides the following services :
You can query the varieties of existing books in the library at any time 、 Quantity and storage location . All kinds of books can be uniquely identified by the book number .
You can check the borrowing and returning of books at any time , Including the borrower's unit 、 full name 、 Library card number 、 Borrowing date and return date .
Appointment : Anyone can borrow a variety of books , Any kind of book can be borrowed by more than one person , The library card number is unique .

Finally, if you feel useful, please connect three times , Your three companies are the greatest encouragement to the author !!!
边栏推荐
- [Planet selection] how to efficiently build fine-grained two-way links between roam and thebrain?
- 快速删除代码里面的node_modules
- Minio single node deployment Minio distributed deployment fool deployment process (I)
- Unity audio visualization scheme
- 快速排序 + 冒泡排序 + 插入排序 + 选择排序
- 1278_FreeRTOS_借助prvAddCurrentTaskToDelayedList接口理解delayed task
- Judge black production based on CDN and client slow log characteristics
- 3dmax插件开发环境配置及FileExport和Utilities模板测试
- 带你玩tiktok就这么简单
- Guava Cache 使用小结
猜你喜欢

Heuristic search strategy

Qt 使用QDomDocument读取xml文件

Yolov5 detecting small targets (with source code)

MIT CMS.300 Session 12 – IDENTITY CONSTRUCTION 虚拟世界中身份认同的建立 part 2

3dmax插件开发环境配置及FileExport和Utilities模板测试

在线文本过滤小于指定长度工具

Online text filter less than specified length tool

RFID data security experiment: C # visual realization of parity check, CRC redundancy check and Hamming code check

【云计算赛项】职业技能竞赛--容器开发部分例题Pig快速开发框架

Using the for loop to output an alphabetic triangle
随机推荐
Query on the performance of multi table view in MySQL
Live broadcast review | how can the container transformation of traditional applications be fast and stable?
[deep learning] [original] how to detect targets and draw map and other parameter maps without yolov5 weights or models
MySQL (11) - sorting out MySQL interview questions
Guava Cache 使用小结
【PyQt5系列】修改计数器实现控制
What is customer experience automation?
1278_FreeRTOS_借助prvAddCurrentTaskToDelayedList接口理解delayed task
Test APK exception control nettraffic attacker development
Yan's DP analysis
unity 音频可视化方案
测试apk-异常管控NetTraffic攻击者开发
Guava cache usage summary
G++ compilation command use
快速删除代码里面的node_modules
Both are hard disk partitions. What is the difference between C disk and D disk?
Principle of skip table
NFS 特别注意权限的问题
[* * * array * * *]
【markdown】markdown 教程大归纳