Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Is SQL touring complete? If not, it belongs on a different bucket.


> Is SQL touring complete?

SQL is Turing complete. Standard SQL may not have been before SQL:1999 (though proprietary query and procedural extensions made many concrete implementations Turing complete), but both CTEs and procedural code (SQL/PSM) were added as part of the SQL standard in SQL:1999, and either one alone would make standard SQL Turing complete.


Someone wrote a raytracer in a MySQL query, so yes: https://www.pouet.net/prod.php?which=83222


SQL has been Turing complete since the 1999 standard https://stackoverflow.com/a/7580013


Of course it is.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: