MySQL如何按照日期字段查询?
表Table1中有 日期字段TestDate,现在想按照天查询。
但是MySQL不支持TestDate=?。该如何写呢?
select * from Table1 where testdate …….?
谢谢大家!
select * from Table1 where testdate=date_format(‘2011-09-15′,’%Y-%M-%d’)
是这个意思吗
引用我要在界面上的输入框内输入想查询的日期就得出所查询日期的数据,不是写死的固定的日期