我想从mysql数据库中检索数据,不管是哪一年,我们都有3条记录
2015-4-4
2018-4-4
2009-4-5
我想找回任何有*-4-4的日期,
知道吗?
发布于 2014-04-05 11:23:05
您可以使用格式()函数
select *
from Table1
where date_format(date ,'%m-%d') ='04-04'
小提琴演示
发布于 2014-04-05 11:22:18
select * from your_table
where day(date_column) = 4
and month(date_column) = 4
https://stackoverflow.com/questions/22880187
复制相似问题