G
G
Governor2017-12-14 17:34:00
MySQL
Governor, 2017-12-14 17:34:00

Why do we need a data schema in access?

Not so long ago, at the university, in computer science, ms.accesses took place. After creating the tables, it was necessary to draw a data schema there. I passed computer science, and forgot about accessories. Sometimes I use MySQL. But MySQL doesn't require any data schemas. When I need a connection with a table, I simply connect via JOIN. So, I still do not understand why it was necessary to draw the entire data scheme there, what does it give? And is there an analogue of this scheme in MySQL?
It's called the ER Diagram.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Andrey Ezhgurov, 2017-12-14
@Mr-Governor

In fact, in MySQL, in addition to "just connect via JOIN", there are also "foreign keys" (foreign key) that define relationships between tables (the same ones set by the ER-model) and provide automatic data integrity control.
An ER model is needed in order to describe the subject area. And building an ER model is the initial stage of database design. And already from the finished ER model, the structure of the database tables is automatically generated (which is done not by the DBMS itself, but by separate utilities).
Access is a mishmash of the DBMS itself and the visual controls of this DBMS. And MySQL is just a DBMS. Because MySQL does not contain built-in mechanisms for working with ER.
If you work with MySQL only in phpMyAtmin, then, of course, you will not encounter ER. But the more decent MySQL administration programs contain the mechanisms for working with ER.

R
Rsa97, 2017-12-14
@Rsa97

An ER diagram is needed not for the operation of the database, but for the developer himself. It allows you to visually display tables and relationships between them. MySQL Workbench allows you to draw an ER diagram and generate commands for creating tables with foreign keys from it, and also knows how to restore an ER diagram from an existing database.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question