SQL is an Old Language of Ancient Power. You have to write the keywords in all caps.
(Fortran is basically the same, but it’s rarer. Lisp is too, but you don’t need to capitalise everything, as the Ancient Power is contained in the parentheses.)
They’re both acronyms, so yes? You always write acronyms in upper case.
Structured Query Language (SQL)
HyperText Markup Language (HTML)
Some exceptions to the rule exist, like “Database” is usually abbreviated as Db in acronyms. For instance, IMDb (Internet Movie Database).
Although considering database is a singular word, it makes sense to lower-case the middle letter of the word, as it wouldn’t be capitalized in the spelled-out word anyway.
Do people actually write SQL in all caps? Ever since I was a boy I’ve always written SQL (and HTML) in lower case.
SQL is an Old Language of Ancient Power. You have to write the keywords in all caps.
(Fortran is basically the same, but it’s rarer. Lisp is too, but you don’t need to capitalise everything, as the Ancient Power is contained in the parentheses.)
This just made my day 😂
https://xkcd.com/297/
I do it because it helps me visually separate SQL keywords from table and column names.
Helps especially when your SQL is embedded in another file so there is no syntax highlighting.
That’s a good reason. I guess when I’m directly writing SQL the queries are point in time and not part of some enduring codebase.
They’re both acronyms, so yes? You always write acronyms in upper case.
Structured Query Language (SQL)
HyperText Markup Language (HTML)
Some exceptions to the rule exist, like “Database” is usually abbreviated as Db in acronyms. For instance, IMDb (Internet Movie Database).
Although considering database is a singular word, it makes sense to lower-case the middle letter of the word, as it wouldn’t be capitalized in the spelled-out word anyway.
Not sure if joking but I meant the language not the acronym.
SQL is the language. Its name is also an acronym, for “Structured Query Language.”
More specifically I meant when I am writing in the language.
I don’t write “SELECT * FROM users;”, I write “select * from users;”
It is more like
SELECT users.id FROM users
or
select users.id from users
Is your caps lock broken? What the heck is that second select?
YEAH, THAT’S WHY HE PRESSED CAPSLOCK