// 使用convert 函数,将datetime转成date类型进行比较 SELECT * FROM test WHERE CONVERT(r_date,DATE) = CONVERT(CURDATE(),DATE)