sql脚本是 where 字段 in (1,4 ) 然后帆软报表 还有给这个字段加复选框,复选框需要在1和4中选,sql需要怎么写。
select * from 表 where 1=1 (and 字段 in (1,4) ${len(控件名)==0,"","or 字段 in ('"+控件名+"')"}) 注意:括号括起来,链接用or链接
select * from 表 where 1=1
${len(控件名)==0,"","and 字段 in ('"+控件名+"')"}