Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个 char 格式的时间。值为:
而且我需要在某个范围内进行所有访问。比如从 8:50 到 9:20。
最好的方法是什么?有 24 种格式的值。
字符串比较应该可以正常工作,直到您跨越一天的边界。
要落入特定间隔,访问应在该间隔结束之前开始,并在其开始后结束:
where from_time < '0920' and to_time > '0850'