4 ms·
I have come to prefer putting commas in lists at the beginning of things SELECT field1 ,field2 ,field3 ,field4 FROM table More easy to realize you are mi
by LarryMade2 11y ago
I have come to prefer putting commas in lists at the beginning of things
SELECT
field1
,field2
,field3
,field4
FROM table
More easy to realize you are missing separators and it just looks nicer to me.
- eecks 11y agoThis is so pointless and really looks like breaking convention for the sake of it
- falcolas 11y agoIt's actually not a terribly uncommon code convention. I've seen a lot of C written with this style. Personally, I don't see the value if your code fits in one screen width, but I'm certainly not going to refactor a code base away from this style if it's been in place for years.
- atsaloli 11y agoI've seen SQL code written in this style too. http://stackoverflow.com/questions/519876/sql-formatting-standards http://stackoverflow.com/questions/519876/sql-formatting-sta... -- having the comma at the start of the line makes it easier to comment out the line