because the likelihood that you change the first column is near 0% (as it's usually the ID) whereas the likelihood you change the other columns is high relatively to the first.
jw
04/26/2024, 3:36 PM
it ensures the diff only ever affects a single line with addition/removal
u
ursus
04/26/2024, 3:39 PM
neat .. okay so if it fits onto a line, then don't indent
Copy code
SELECT column1, column2
FROM table
otherwise column per line + indent for everything, or do you find this still cool?
Copy code
SELECT
column
, column
, column
, column
, column
FROM table
WHERE id=?