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

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

android - Keyboard hides my half of edit-text and button below it even in scroll view -

css - Make div keyboard-scrollable in jQuery Mobile? -