date_trunc('hour')
ここで役立つ場合があります。例:
select token_id, generated_time
from token
where generated_time between date_trunc('hour', current_timestamp) and date_trunc('hour', current_timestamp + interval '1 hour')
date_trunc('hour')
ここで役立つ場合があります。例:
select token_id, generated_time
from token
where generated_time between date_trunc('hour', current_timestamp) and date_trunc('hour', current_timestamp + interval '1 hour')