sql - PostgreSQL: Obtain rows from table from 5 minutes ago -
i need obtain following example table rows match 5 minutes ago since query run.
the query scheduled run every 5 minutes rows created in range of time.
create table mytable ( date timestamp without time zone not null, id numeric(8) ) i've tried interval option because table has column defined timestamp without time zone i'm not getting proper info need.
not sure why interval not working:
select * mytable "date" >= now() - interval '5 minutes';
Comments
Post a Comment