【发布时间】:2015-07-19 22:25:43
【问题描述】:
当我有表管理时如何在 mysql 中进行查询:
number=1 , name=tanti, timeIn=07:00:00,timeOut=09:00:00
我想在我的电脑中选择名称和时间是 08:00:00,但我仍然希望得到“tanti”,因为 08:00:00 > timeIn 和 08:00:00
【问题讨论】:
-
select ... where '08:00:00' BETWEEN timeIn and timeOut -
在发布之前尝试搜索您的问题的答案... ;)
-
好的,感谢您的帮助:)
标签: mysql