如何写mysql语句,必须用一个控件实现
select * from biao where time>=???? and time<='${aa}'
用2个控件 不就好了吗 根据开始时间、结束时间查询数据 https://help.fanruan.com/finereport/doc-view-424.html
TODATE(DATETONUMBER(now())-7200000)
select * from bao where time>='${TODATE(DATETONUMBER(aa)-7200000)}' and time<='${aa}'
select * from biao where time>=DATE_SUB('${aa}', INTERVAL 2 HOUR) and time<='${aa}'