Jag skulle säga date_trunc('hour')
kan vara till hjälp här, t.ex.
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')
Jag skulle säga date_trunc('hour')
kan vara till hjälp här, t.ex.
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')