ursus
04/26/2024, 3:29 PMdebt:
SELECT
id, amount, otherAmount, suspended, otherAmountLevel, lastOverUsagePaymentTimestamp, otherAmountComputedTimestamp,
details, payment_mutationState, payment_mutationId, payment_mutationTimestamp, subscriberId
FROM debt
WHERE subscriberId=?
LIMIT 1;
how do YOU format long projections? keep it horizontally scrolling? column on new line? tabbed or not tabbed?eygraber
04/26/2024, 3:29 PMursus
04/26/2024, 3:30 PMursus
04/26/2024, 3:30 PMSELECT
column,
column,
column,
column,
column,
FROM
table
jw
04/26/2024, 3:36 PMSELECT
column
, column
, column
, column
, column
FROM
table
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 PMursus
04/26/2024, 3:39 PMSELECT column1, column2
FROM table
otherwise column per line + indent for everything, or do you find this still cool?
SELECT
column
, column
, column
, column
, column
FROM table
WHERE id=?