News for hackers. Stuff that matters.
Re:How I write SQL by genwin on Wednesday May 01, 2013 @02:16PM (#5639768)
I do SQL most days. Commas at the end of the line is more advantageous than not, in my book. I find this best:

  select
      Field1,
      Field2,
      AnotherField
  from
      Table1
So clean, so consistent! No all-uppercase that adds almost no benefit at significant cost. Fields lined up for easy reading and editing.

The comma controversy could be eliminated if the SQL standard was like Go's, where even the last line would have a comma.

There are no comments on this comment yet.