News for hackers. Stuff that matters.
Re:Best practices for writing SQL queries by magicalhippo on Saturday April 10, 2021 @02:17PM (#26763654)
Yeah, I almost always do "where 1=1" with the actual expressions AND'ed below.

For OR, I like to keep the "1=1" and do

    AND (1=2
      OR ...
    )

There are no comments on this comment yet.