1=1 条件为真 查全部
--------------
通常是为了部分拼接后面的条件写的
比如
SELECT * FROM TABLE WHERE 1=1 ${IF(LEN(A)==0,"","AND xxx='"+A+"'")} ${IF(LEN(B)==0,"","AND xxxX='"+B+"'")}
类似于这样的SQL如果没得1=1 那后面的判断起来就麻烦
SELECT * FROM TABLE WHERE ${IF(LEN(A)==0,"","where xxx='"+A+"'")} ${IF(LEN(B)==0,"",IF(LEN(A)==0," WHERE xxxX='"+B+"'","AND xxxX='"+B+"'"))}