SELECT * FROM [table_name] WHERE ( datediff ( update_time , '2022-05-13' ) = 0 ) 扩展知识:
SELECT * FROM [table_name] WHERE substring(Convert(char(10),update_time ,112),1,8)='20220513' SELECT * FROM [table_name] WHERE update_time between '2022-05-13 00:00:00' and '2022-05-13 23:59:59' SELECT * FROM [table_name] WHERE year(update_time ) = 2022 and month(update_time )= 05 and day(update_time ) = 13 SELECT * FROM [table_name] WHERE update_time > '2017-09-27' and update_time < '2022-05-13' 到此,关于“mysql如何查询某天的数据”的学习就结束了,希望能够解决大家的疑惑。