sql取数时,怎么设置每天取当天的数据,从而实现每天自动取数
=today()
sql中参数
where 1=1
${if(len(rq)=0,"and mydate='"+today() +"'","and a.mydate ='"+ rq + "'")}
select * from 表 where 日期字段='${today()}'