📜  date in where on datetime column 子句mysql代码示例

📅  最后修改于: 2022-03-11 15:05:00.395000             🧑  作者: Mango

代码示例1
You can use MySQL's DATE() function:

WHERE DATE(datetime) = '2009-10-20'
You could also try this:

WHERE datetime LIKE '2009-10-20%'