2015-09-05 63 views

回答

1
select * from your_table where date(dt_col) = '2015-09-05' 

,或者利用索引使用

select * from your_table 
where dt_col >= '2015-09-05' 
and dt_col < '2015-09-06' 
1

使用DATE函数。它将字符串值分析为DATETIME,然后提取日期。

相关问题