选择没有时间的日期 [英] Select where date without time
本文介绍了选择没有时间的日期的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用 SQLite,现在如何选择查询,如果我有一个具有此值的时间戳列,例如 07:00 06/03/13
但我只想选择时间戳的位置06/03/13
.
I am using SQLite, now how can I Select a query if I have a timestamp column that has this value for example 07:00 06/03/13
but I want only to select where timestamp 06/03/13
.
这是我的查询示例..
select
timestamp, pname
from
attendance
where
timestamp between `06/01/13` and `06/10/13`
推荐答案
使用 date
select timestamp, pname
from attendance
where date(timestamp) = '2013-03-06'
这篇关于选择没有时间的日期的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文