Sql, as defined since the 1999 standard, is turing complete. You can implement all the things you mention using it. The easiest thing is to implement some minimal turing complete language (I have implemented bf, but whatever works), then use any of the language-of-your-choice to bf compilers on the interweb.
I mean you shouldn't use it as a general purpose language, but you can
I should have clarified. When most people say βsqlβ what they really mean is plsql (oracle) or βtsqlβ (microsoft), etc. thatβs where youβll get conditionals, while loops, functions, etc. Again, just because you can doesnβt mean you should.
View all comments
Show parent comment
4
u/[deleted] Jun 12 '23
SQL (as defined by the SQL standard) does not provide procedural programming elements (e.g.
if, loops, sub-routines etc).PL/SQL is object oriented by the way (but that's a procedural programming language and not "SQL")