In that definition then HTML is also a programming langauge. It is a set of grammatical rules for instructing a computer to perform the task of displaying a web page correctly.
I would argue there is a difference between data and instructions, and HTML falls firmly on the side of data while SQL falls on the side of instructions. HTML is a static description of a specific page/layout, not too unlike, say, PDF or JPG, just more human-readable. SQL is set of instructions you execute against a database and it produces various results or even effects a change.
If you’re using SQL to write programs, then something is amiss. It’s meant to be used to query and update databases, not to be a calculator or something like that.
Ive seen and worked on 1000+ line long sqls before. In the olden days people used to do actual business logic with it. Its considered bad practice now. But its still a programming language.
View all comments
Show parent comment
9
u/[deleted] Jun 01 '23
[removed] — view removed comment