gpt4 book ai didi

mysql - 仅来自日期时间列的时间

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

我有一个讲座表,其中包含讲座的时间戳列表。

我想创建一个查询,让我可以过滤它的时间比例。例如,我想找到所有持续1小时的讲座(我不介意是哪一天)。

到目前为止我已经创建了一个代码,但它没有带来任何结果:

select time(lecturetime)
from lecture
where lecturetime >= '12:00:00' and lecturetime < '13:00:00'

有人可以帮我纠正这个问题吗?

最佳答案

不要将讲座时间与时间(lecturetime)混淆

select time(lecturetime)
from lecture
where time(lecturetime) >= '12:00:00' and time(lecturetime) < '13:00:00'

关于mysql - 仅来自日期时间列的时间,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36754236/

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