|
|
|
|
|
by jolmg
2329 days ago
|
|
That link talks in general. In general, I agree that lowercase is more readable. > Additionally using casing when it has no meaning is an anti-pattern. Why do you say that it has no meaning? This is about differentiating SQL keywords from table and column identifiers. That's the meaning. > The first is actually much easier to read, and lower case is far superior. Reading the query whole, sure, but are you seriously suggesting that you can skim for the identifiers faster in the all-lowercase one when there are no color hints? |
|
One could also type like `CoUnT(dIsTiNcT CaSe WhEn ... EnD)` to make the keywords stand out. Casing has absolutely no meaning in SQL outside of single quotes.
On the other hand, (in python for example) SOME_FUNCTION() and some_function() both have meaning. They do not refer to the same thing.
>but are you seriously suggesting that you can skim for the identifiers faster in the all-lowercase one when there are no color hints?
Yes. Especially since my eyes don't get stuck on the massive blobs of ALL CAPS YELLING TEXT in the select.