该查询与大于完美匹配。
select RunId,count(ObjectId)
From Run
WHERE Created_On >= UNIX_TIMESTAMP('2015-01-12')
group by RunId
但是我想比较两个日期之间的时间戳,以及当我尝试使用小于不提取任何行的查询时的时间戳。
select RunId,count(ObjectId)
From Run
WHERE Created_On <= UNIX_TIMESTAMP('2017-01-12')
group by RunId
select RunId,count(ObjectId)
From Run
WHERE Created_On >= UNIX_TIMESTAMP('2015-01-12') and Created_On < UNIX_TIMESTAMP('2017-01-12')
group by RunId