CONCATENATE(MIN(mon.select(month,year=$year_data&&mon in ('$mon'))),'-',MAX(mon.select(month,year=$year_data&&mon in ('$mon'))),'月'),CONCATENATE($mon,'月'))
数据集函数不支持in,可以转换但比较复杂。建议用sql函数:=sql("FRDemo","SELECT * FROM STSCORE where CLASSNO in ('"+$class+"') and COURSE in ('"+$COURSE+"') ",3,4)参考:https://help.fanruan.com/finereport/doc-view-846.html