对于mysql datetime如果我的变量日期没有指定时间将sql引用..
date >= date1 and date <= date2
所以如果date1 =&#39; 2015-01-01&#39; date2 =&#39; 2015-02-01&#39;
我的查询结果将是
日期&gt; =&#39; 2015-01-01 00:00:00&#39;和&lt; =&#39; 2015-02-01 23:59:59&#39;
或
&lt; =&#39; 2015-02-01 00:00:00&#39;
答案 0 :(得分:0)
它将会在2015-02-01 00:00:00&#39;
https://dev.mysql.com/doc/refman/5.1/en/date-and-time-type-conversion.html