php 日期搜索为什么不包括当天
sql语句是这样的:
$kstime=$_POST["kstime"];
$jstime=$_POST["jstime"];
Select * From tab where createdtime >='".$kstime."' and createdtime
搜索出来的结果为什么不包括当天的呢?当createdtime >='2012-6-7' and createdtime
------解决方案--------------------
------解决方案--------------------
------解决方案--------------------
select * from tab where date_format(createdtime,'%y-%m-%d') between '2012-06-28' and '2012-06-30'











