Do we need to use caps for SQL keywords? My understanding is that it served a purpose back in the days of monochrome screens, but modern IDEs colour the keywords so caps are now redundant. Though I don't use caps even without colouring, I find them just a nuisance.
PgFormatter: A PostgreSQL SQL syntax beautifier
11–20 of 33 posts
Re: PgFormatter: A PostgreSQL SQL syntax beautifier
#12Do we need to use caps for SQL keywords? My understanding is that it served a purpose back in the days of monochrome screens, but modern IDEs colour the keywords so caps are now redundant. Though I don't use caps even without colouring, I find them just a nuisance.
select*from"MyTable"where"column"=3Re: PgFormatter: A PostgreSQL SQL syntax beautifier
#13Re: PgFormatter: A PostgreSQL SQL syntax beautifier
#14 SELECT field, other_field
FROM table
WHERE some_thing IN (
SELECT id
FROM other_table
)
AND other_field IS NOT NULL
(mostly it's right-aligning keywords, but there are a few other weird tweaks)Re: PgFormatter: A PostgreSQL SQL syntax beautifier
#15Re: PgFormatter: A PostgreSQL SQL syntax beautifier
#16I'll have to see if I can adapt this to my somewhat idiosyncratic syntax: SELECT field, other_field FROM table WHERE some_thing IN ( SELECT id FROM other_table ) AND other_field IS NOT NULL (mostly it's right-aligning keywords, but there are a few other weird tweaks)
Re: PgFormatter: A PostgreSQL SQL syntax beautifier
#17I'll have to see if I can adapt this to my somewhat idiosyncratic syntax: SELECT field, other_field FROM table WHERE some_thing IN ( SELECT id FROM other_table ) AND other_field IS NOT NULL (mostly it's right-aligning keywords, but there are a few other weird tweaks)
Re: PgFormatter: A PostgreSQL SQL syntax beautifier
#18Re: PgFormatter: A PostgreSQL SQL syntax beautifier
#19Do we need to use caps for SQL keywords? My understanding is that it served a purpose back in the days of monochrome screens, but modern IDEs colour the keywords so caps are now redundant. Though I don't use caps even without colouring, I find them just a nuisance.
Re: PgFormatter: A PostgreSQL SQL syntax beautifier
#20I'll have to see if I can adapt this to my somewhat idiosyncratic syntax: SELECT field, other_field FROM table WHERE some_thing IN ( SELECT id FROM other_table ) AND other_field IS NOT NULL (mostly it's right-aligning keywords, but there are a few other weird tweaks)
I do similar, keeps both keywords and fields vertically aligned.
* ORDER BY
* INNER JOIN
etc