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.
View all comments
Show parent comment
2
u/suvlub Jun 01 '23 edited Jun 02 '23
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.