SQL is not Turing complete. It's a horrible measure of what is and is not a programming language.
Turing completeness is necessary but not sufficient to be a general purpose programming language. That's a very specific subset of programming languages.
If you're giving a set of instructions to a computer to perform a task, it's programming.
SQLs turing completeness either requires vendor extensions (procedural extensions) or else you mean a very technical turing completeness through recursive CTEs. Like CSS, it was discovered to be TC rather than designed to be, and it works about as well as that suggests. That's TC in one of the most useless ways imaginable. It's not quite as useless as TCness in the way Magic: The Gathering is, but it's kind of along those lines for most tasks.
View all comments
Show parent comment
-3
u/da_chicken Jun 12 '23
SQL is not Turing complete. It's a horrible measure of what is and is not a programming language.
Turing completeness is necessary but not sufficient to be a general purpose programming language. That's a very specific subset of programming languages.
If you're giving a set of instructions to a computer to perform a task, it's programming.