3 ms·
I think part of the issue is that SQL is not a programming language. You cannot really express algorithms in the normal sense in SQL. Instead you specify a res
by einhverfr 10y ago
I think part of the issue is that SQL is not a programming language. You cannot really express algorithms in the normal sense in SQL. Instead you specify a result and let the db decide the algorithm. So SQL is a language you program around, not a language you program in. I.e. you can extend and consume SQL.
BTW, don't move your HTML into the db :-) Separate presentation and data logic.
(We are teaching a course[1] in Sweden on programming against PostgreSQL. It focuses on much of this as well as trying to look under the hood to deal with what happens when the abstraction fails to deliver what is expected.)
At the end, this is a longish path and one that took me personally a long time to make. But it is something that he more we share, the better off others will be I think.
[1]https://edument.se/education/categories/sql/advanced-postgresql https://edument.se/education/categories/sql/advanced-postgre...
- dozzie 10y ago> I think part of the issue is that SQL is not a programming language. You cannot really express algorithms in the normal sense in SQL. 1) You can (namely: PL/SQL). 2) The same situation as in SQL (the query part, not procedural language) you have in Prolog (though SQL query is not Turing-complete). It's a different paradigm of working with data, but it's still a programming language. > Instead you specify a result and let the db decide the algorithm. The term you're looking for is declarative programming.