5

Had to write a recursive MySQL query today and, oh lordy! It's not intuitive at all.

It works now so I'm happy, but I spend more time on it than I'm willing to admit...

(source: https://mysqltutorial.org/mysql-rec...)

Comments
  • 1
    Well... Whoever says recursion is intuitive, can nicely fuck off. 🤣

    https://mariadb.com/kb/en/...

    MariaDb has quite a lengthy tutorial.

    Recursion is hard already, but tearing apart recursion in SQL is migraine.

    No "true" debugging and the longer the SQL statements become... The harder it is to keep track of which part of the CTE expression you're currently editing.

    But if it works it's really golden xD
  • 0
    Recursion is the one and only thing Oracle actually excels at
Add Comment