select * from (
select bbb.action_id,
aaa.image_id,
aaa.version,
aaa.create_time,
aaa.marker_id,
aaa.label_duration_second,
DATE_FORMAT(aaa.create_time,'%H') time
from t_shelf_label_history aaa
inner JOIN t_shelf_image bbb ON aaa.image_id = bbb.id and
bbb.owner_id = 2265
where aaa.create_time > "2018-10-1"
AND aaa.create_time < "2018-10-31"
) demo where time > 20
sql 查询每天大于某个时间点的数据
最新推荐文章于 2023-09-13 10:13:43 发布