2015-09-05 60 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,然後提取日期。

相關問題