select * from tableName
where
load_date>=concat(#{startDate},' 00:00:00')
and
load_date<=concat(#{endDate},' 23:59:59')
ps:数据库时间字段用的datetime类型,具有时分秒。此处传入的时间参数应为"yyyy-MM-dd"的字符串。
select * from tableName
where
load_date>=concat(#{startDate},' 00:00:00')
and
load_date<=concat(#{endDate},' 23:59:59')
ps:数据库时间字段用的datetime类型,具有时分秒。此处传入的时间参数应为"yyyy-MM-dd"的字符串。