InnoDB
InnoDB is the default storage engine. It gives transactions (COMMIT/ROLLBACK), FOREIGN KEYs, and crash recovery. This is the engine you want for students, fees, orders.
MyISAM is older: table-level locks, no transactions, no FKs. Full-text search was its old selling point — InnoDB has fulltext now too.
SHOW TABLE STATUS; Engine column. ALTER TABLE t ENGINE=InnoDB; to convert (backup first).
Trap — creating MyISAM tables in 2026 and promising ACID.
On the example next to this theory: InnoDB: create two demo rows, then SELECT qty >= 2 ordered. Say which labels come back.
Exam tip
InnoDB for ACID and FOREIGN KEY. Default in MySQL 8.