News for hackers. Stuff that matters.
Re:Best practices for writing SQL queries by scottmcdot on Saturday April 10, 2021 @06:28PM (#26765787)
On this, I like to also use

   Where 1 = 1
   And...
   And... 
Which makes it easy to comment out specific filters.
Re:Best practices for writing SQL queries by Tostino on Saturday April 10, 2021 @07:08PM (#26766111)
Yup, my code is littered with WHERE true AND ...