Powiedziałbym, że date_trunc('hour')
może tu pomóc, np.
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')
Powiedziałbym, że date_trunc('hour')
może tu pomóc, np.
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')