4 ms·
What's the stance on using tabs to keep the stuff after keywords lined up? Whacking space a bunch of times to keep an OR lined in a WHERE clause is incredibly a
by HCIdivision17 11y ago
What's the stance on using tabs to keep the stuff after keywords lined up? Whacking space a bunch of times to keep an OR lined in a WHERE clause is incredibly annoying. Why not just go WHERE\tcol1 = 3\n\t\tORcol2=6
select *
from asdf
where col1 = 5
or col2 = 6
I'll concede that the river is less pretty, but it's substantially easier to type, and SQL keywords are remarkably conducive to being tabbed around.
EDIT: Perhaps hilariously, by preceding the code with two spaces, the stuff got out of alignment. I'm adding another two padding spaces to start. (I usually use a 4 space tab, but I can see how the river becomes a bit wide on 8.)