业务需求是这样的,
查询条件只有年月日,而数据库中包含时分秒,sql 语句要查询一个时间段的数据,也就是我选择具体的某一天的话,例如,选在2015-10-16 我的sql要写成 select * from report_online where between report_online.time >=2015-10-16 00:00:00 and report_online.time<=2015-10-16 23:59:59 ,那么我的动态sql 要怎么写,网上查了很多资料都不对,求助!!
业务需求是这样的,
查询条件只有年月日,而数据库中包含时分秒,sql 语句要查