I like to use range comparison when possible since this can be used for index-scan by the optimizer:
select inspections.name
from inspections
where inspections.date >= DATE '2010-06-01'
and inspections.date < DATE '2010-07-01'
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…