mysql比较时间

2014-11-23 23:37:34 · 作者: · 浏览: 9

select * from operatlog where date_format(optime, '%Y-%m-%d') > '2007-01-01' and date_format(optime, '%Y-%m-%d') < '2009-01-01' limit 1;

本文出自“lbk90032190”