Why not this?
WHERE A
AND B
AND C
Or better, this? You can comment out any part easily. WHERE 1
AND A
AND B
AND C
(With keywords capitalized, as g-d intended. :-) Or not.)I like the "WHERE 1" trick, thanks!
Re:Writing more legible SQL
by bhrgunatha on Thursday November 03, 2016 @06:10AM
(#12862693)
I have the same problem and also with where to put the commas separating columns names. You can't win the game though.
Sometimes you want to remove/comment out the first line, sometimes the last, sometimes one in the middle.
I think I usually end up with the later because I think it makes more sense.