MySQL 输入字符串对日期进行模糊查询

select * from 表名 where date_format(time,"%Y-%m-%d") like "%日%"

posted @ 2021-10-25 10:21  xing柠檬  阅读(158)  评论(0编辑  收藏  举报