SQL("EDW","SELECT * FROM AA.ABC WHERE DATA_DT='" + $DATA_DATE +"'
AND if(len($CST_TP)==0,' ',$CST_TP)",1)
if(len($CST_TP)=0,SQL("EDW","SELECT * FROM AA.ABC WHERE DATA_DT='" + $DATA_DATE +"'",1),
AND CST_TP='"+$CST_TP+"'",1)
)
这个写错了 不要截图 把公式粘贴出来
"' and "+if(len($CST_TP)==0,"1=1","xxxxxxx")