SQL函数在 where条件后面添加if判断可以吗?怎么使用的?
-- 支持,参考写法:
SQL("HSQL","SELECT * FROM CUSTOMER where 1=1 "+if(SQL("HSQL","SELECT * FROM CUSTOMER",1,1)='KK'," and id =2"," and id =1"),2,2)
____________________
不知道能不能用就按照你的想法先直接执行看看,你和程序有一个能跑就行
where 1=1 ${if(len(store)==0,""," and bimg02='"+store+"'")}