# MySQL - MariaDB

## Afficher les contraintes de cascades

Exemple pour la compréhension :

- [https://mariadb.com/kb/en/foreign-keys/](https://mariadb.com/kb/en/foreign-keys/)

### Dans phpmyadmin

Sélectionner la table, puis **Structure**, enfin **vue relationnelle**.

[![Sélection_006.png](https://wiki.dugravot.fr/uploads/images/gallery/2024-09/scaled-1680-/selection-006.png)](https://wiki.dugravot.fr/uploads/images/gallery/2024-09/selection-006.png)

### En CLI

```
show create table decisions ;
  KEY `simulated` (`simulated`),
  CONSTRAINT `decisions_alerts_decisions` FOREIGN KEY (`alert_decisions`) REFERENCES `alerts` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=34889411 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin |
```