标签:
mysql数据库:
logintime >= STR_TO_DATE(‘$$START_TIME‘,‘%Y-%m-%d %H:%i:%s‘) AND logintime < STR_TO_DATE(‘$$END_TIME‘,‘%Y-%m-%d %H:%i:%s‘)
oracle数据库:
where create_time >= to_date(‘$$START_TIME‘,‘yyyy-mm-dd hh24:mi:ss‘)
and create_time < to_date(‘$$END_TIME‘,‘yyyy-mm-dd hh24:mi:ss‘)
sqlserver数据库:
p.updateTime >= CONVERT(VARCHAR(24),‘$$START_TIME‘,121) and p.updateTime < CONVERT(VARCHAR(24),‘$$END_TIME‘,121)
标签:
原文地址:http://www.cnblogs.com/30go/p/5779992.html