Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
starspangled
10 months ago
|
parent
|
context
|
favorite
| on:
How about trailing commas in SQL?
You've moved the problem from the last to the first element though. Surely people would prefer to be able to do this
SELECT a, b, c, FROM ... ?
_dain_
10 months ago
|
next
[–]
The first element is modified less often than the last element. Often it's just an "id" column or something. Comma-first is a net win.
tezza
10 months ago
|
prev
[–]
as mentioned elsewhere, i personally introduce a pad element to get fire and forget consistency
SELECT 1 as pad , a , b
computerthings
10 months ago
|
parent
[–]
That's something where "what it makes the computer do" overrides "how nice it looks in text form" to me.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: