我能夠做到這一點,但我只想縮小到某個日期:
select count(*) as total, HOUR(crawled_at)
from parsed_products
GROUP by HOUR(crawled_at)
我如何提及crawled_at的具體價值?
uj5u.com熱心網友回復:
您需要 top 使用where子句來指定一個過濾器,像這樣
select count(*) as total, HOUR(crawled_at)
from parsed_products
where crawled_at ='2022-10-18'
GROUP by HOUR(crawled_at)
轉載請註明出處,本文鏈接:https://www.uj5u.com/houduan/516990.html
標籤:mysqlsql
上一篇:如何根據引數條件聯合所有特定表
