gpt4 book ai didi

android - 日期比较 Sqlite Android

转载 作者:行者123 更新时间:2023-11-29 16:07:54 25 4
gpt4 key购买 nike

我如何使用 SQlite 比较日期,我尝试了更多失败。求助:D我的查询:

SELECT 
latitude,
longitude,
grupo_crime_id_grupo_crime,
descricao,
id_crime,
cities_id_cities,
time,
estado
FROM crime WHERE
cities_id_cities='0' AND
time >= datetime('2013-03-28T09:30:37-03:00')
time <= datetime('2013-0328T09:30:37-03:00') AND
grupo_crime_id_grupo_crime='1'

最佳答案

像这样使用:

select * from MyTable 
where mydate >= Datetime('2000-01-01 00:00:00')
and mydate <= Datetime('2050-01-01 23:00:59')

关于android - 日期比较 Sqlite Android,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16425171/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com