条件始终为true的SQL

Mr.*_*ino 20 sql

如何在SQL中设置一个始终为真的条件???

据我所知:'1 = 1',还有其他方法吗?

Non*_*nym 30

您是偶然地谈论collapse条件,其中分组条件总是TRUEFALSE

WHERE TRUE
WHERE 1
WHERE <string value> = <the same string value>
WHERE <numeric value> = <the same numeric value>
WHERE <hardcoded formula> = <the same hardcoded formula or one that produces the same value>
WHERE NULL IS NULL
Run Code Online (Sandbox Code Playgroud)