当前位置:网站首页>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 !!!
边栏推荐
- 基于51单片机的温度检测监测报警系统设计
- Matlab随机波动率SV、GARCH用MCMC马尔可夫链蒙特卡罗方法分析汇率时间序列
- NFS special attention to permissions
- 论文写作之WPS安装Mathtype插件编写数学公式
- MySQL on duplicate key and PgSQL on conflict (primary key) handle primary key conflicts
- The sandbox has reached a cooperation with football player to bring popular football cartoons and animation into the metauniverse
- 传智教育 | 项目发布前如何打tag标签及标签命名规范
- 小爱音箱连接网络异常解决办法
- [深度学习][原创]如何不用yolov5权重或者模型进行目标检测和绘制map等参数图
- Both are hard disk partitions. What is the difference between C disk and D disk?
猜你喜欢

聊聊服务治理中的路由设计

Live broadcast review | how can the container transformation of traditional applications be fast and stable?

MySQL (IV) - MySQL storage engine

WPS for thesis writing installs MathType plug-in to write mathematical formulas

SimpleDateFormat 线程安全问题
![[Planet selection] how to efficiently build fine-grained two-way links between roam and thebrain?](/img/ee/ce9f55694b28c391eb07cb11298caf.jpg)
[Planet selection] how to efficiently build fine-grained two-way links between roam and thebrain?

Wechat multiplayer chat and Roulette Games (websocket Implementation)

论文写作之WPS安装Mathtype插件编写数学公式

Operation on a bit of binary

【Veusz】导入CSV中的二维数据
随机推荐
MySQL获取系统时间段
【markdown】markdown 教程大归纳
2. probability theory - axiom of probability theory
HCIP之路MPLS
30 sets of report templates necessary for the workplace, meeting 95% of the report needs, and no code is required for one click application
Feelm joined the Carbon Disclosure Project as an initiative of Smallville to deal with climate change emergencies
论文伪代码规范,伪代码在线编辑器,
MySQL (11) - sorting out MySQL interview questions
在线文本过滤小于指定长度工具
帆软堆积图显示占比
1.概率论-组合分析
快速删除代码里面的node_modules
2022山东大学软件学院软件项目管理期末考试(回忆版)
vs在连接SQL时出现的问题myconn.OPen();无法运行
数学知识:快速幂求逆元—快速幂
2.概率论-概率论公理
YGG Spain subdao Ola GG officially established
浅析 Open API 设计规范
The road to hcip MPLS
Simpledateformat thread safety issues