${IF(LEN(TEXT)==0,'and 1=2'," AND TNAME LIKE '%' || ' "+TEXT+" ' || '%' ")} |
==========
如果没有其他条件
where {IF(LEN(TEXT)==0,'1=2'," TNAME LIKE '%' || ' "+TEXT+" ' || '%' ")}
有其他条件,就是
where 1=1
{IF(LEN(TEXT)==0,'and 1=2'," AND TNAME LIKE '%' || ' "+TEXT+" ' || '%' ")}