DATE_SUB()およびNow()関数を利用します: select count(*) as cnt from log where date >= DATE_SUB(NOW(),INTERVAL 1 HOUR); お役に立てば幸いです:)