Re:SQL Tips and Tricks
by AtNightWeCode on Wednesday September 25, 2024 @09:15AM
(#41647154)
Yes. "Use a dummy value in the WHERE clause so you can dynamically add and remove conditions with ease:" I don't know how to read this in another way.
1 = 1 is at least handy for simply joining a variadic amount of other clauses with ' AND ' rather than counting if there's any to add at all.