where 条件没有生效

我的 SQL 脚本为:

select * from tb where symbol = "000005.XSHE" and date >= 2023.01.01 and date < 2023.09.01 and time >= 10:30

发现 and time >= 10:30 没起效果,。如果需要选出某天短时间的某个时段的数据,应该怎么写脚本呢?

请先 登录 后评论

1 个回答

veryOrdinary

如果 time 这列包含日期,可以用 minute(time) >= 10:30m 的方式进行改写

请先 登录 后评论