https://github.com/brian-emarquez/mysql-training
Modelo Entidad Relacion (ER)
https://github.com/brian-emarquez/mysql-training
mysql sql
Last synced: about 1 year ago
JSON representation
Modelo Entidad Relacion (ER)
- Host: GitHub
- URL: https://github.com/brian-emarquez/mysql-training
- Owner: brian-emarquez
- License: mit
- Created: 2021-06-01T22:18:25.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2023-06-28T19:44:17.000Z (almost 3 years ago)
- Last Synced: 2025-01-22T09:11:09.886Z (about 1 year ago)
- Topics: mysql, sql
- Homepage: https://github.com/BrianMarquez3
- Size: 8.64 MB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
MySQL Training
## Install
📦 [MySQL Workbench](https://dev.mysql.com/downloads/workbench/) MySQL Community Downloads
📦 [MariaDB](https://mariadb.org/download/?t=mariadb) Download MariaDB Server
## Comands
_Restore Database MYSQL_
[Restaurar base de datos o importar datos](https://www.youtube.com/watch?v=GHwbQ9HBX0E)
_Diagram E-R_
[Relaciones en MySQL Workbench](https://www.javierrguez.com/generar-diagrama-entidad-relacion-mysql/)
* SQL FOREIGN KEY on CREATE TABLE
```sql
CREATE TABLE parent (
id INT NOT NULL,
PRIMARY KEY (id)
) ENGINE=INNODB;
CREATE TABLE child (
id INT,
parent_id INT,
INDEX par_ind (parent_id),
FOREIGN KEY (parent_id)
REFERENCES parent(id)
ON DELETE CASCADE
) ENGINE=INNODB;
```
_Alter Table Forenkey_
```sql
alter table tbtipodocumentopersonal
DROP CONSTRAINT fk_tbtipodocumentopersonal_tbdependiente1;
```
---
## Paypal Donation
🩸 Hacer una donación [PAYPAL](https://www.paypal.com/donate?hosted_button_id=98U3T62494H9Y)
## License
Todo acerca de la licencia [LICENCE](https://github.com/BrianMarquez3/MySQL-Training/blob/main/LICENCE)