1.
鏈接地址 https://jingyan.baidu.com/article/adc815137223f7f722bf7348.html
${if(len(kzlx)=0, "", " and 卡主類型 in ('" + kzlx + "')")}
2.
3.. sql 語句的執行順序 是從 from 開始執行的
select 表名字 .字段一 as 新字段一, 表名字 .字段二 as 新字段二 from 表名字
where 1=1 and 表名字 .字段一 between '20170901' and '20171031' 正確的寫法
select 表名字 .字段一 as 新字段一, 表名字 .字段二 as 新字段二 from 表名字
where 1=1 and 新字段一 between '20170901' and '20171031' 錯誤的寫法