日期控件就一个date控件,yyyy-mm-dd格式,如何用sql语句写取前10天的数据?数据库表字段是createdate,表名是table
select * from table where createdate>='${DATEDELTA(date,-10)}' and createdate<='${date}'
select * from a where createdate>='${DATEDELTA(date,-10)}'