因此,现在采用这一方法的Im:
select * from items where mydate = "2009-11-28"
由于我的日期被储存在<代码>yyyy-mm-d格式中,因此,这应该通过一切手段将一行退回到相应的日期,正确吗? 如果不是的话,我会做什么错呢?
我试图这样做:
select * from items where releasedate between date("2009-11-28") and date("2009-11-29")
这种做法是正确的,但总是必须在一天之内使用。
So the second query works fine, but the first doesnt. Is there a reason? I also tried putting the date in date()
, but that didnt work either.