I've gathered the main critiques of MySQL / MariaDB stored procedures, and will try some defences.
Monoglots
The critique:
SQL/PSM is the standard 4GL and it was the work of Andrew
Eisenberg. Andy based it on ADA. Unless you are military, you
have never seen ADA. Be grateful it is dead.
-- Joe Celko, reminiscing about his days on the SQL standard
committee
Actually I believe Mr Celko likes SQL/PSM, which is the standard that MySQL and MariaDB follow. Here at last is your chance to see some Ada code, and compare with MySQL code ...
Ada |
MySQL |
---|---|
declare a: integer; begin a := 0; loop a := a + 100; exit when a = 200; end loop; if a /= 300 then a := 400; else a … |