Re:Writing more legible SQL
by mythz on Thursday November 03, 2016 @03:09AM
(#12862116)
I also use UPPER case for SQL Keywords to visually distinguish them from user-defined names (i.e. similar purpose to syntax coloring), but I don't collapse SELECT over multiple lines and line up each statement so the conditions line-up, e.g:
[ Parent
| on HN ]
Re:Writing more legible SQL
by bhrgunatha on Thursday November 03, 2016 @05:35AM
(#12862559)
That covers the simplest case.
What would you do when you're selecting 20 columns from 5 different tables joined together?
Re:Writing more legible SQL
by alistairbayley on Thursday November 03, 2016 @03:53AM
(#12862247)
Re uppercase: can't afford a syntax-highlighting editor?