3 ms·
I really like his indentation. I'm gonna use it. Most of it has been my style for a long time.
by jbverschoor 10y ago
I really like his indentation. I'm gonna use it. Most of it has been my style for a long time.
- webbore 10y agoIf you're writing a lot of ad-hoc queries, I prefer to have keywords on their own line and also put commas at the start of the following line vs end of the previous. It lets you comment stuff out easier as you experiment. In a production query the only hard rule should be, "Please be consistent!"
- Treffynnon 10y agoPutting the comma before doesn't actually make commenting out columns easier - it just moves the problem to the other end of the list. Just try commenting out the first column in your SQL and you'll see what I mean.