Search Postgresql Archives

current_timestamp - 20 minutes

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





I 'm storing things in a table with now() and I want to select * from theTable WHERE the Timestamp is > the current time - 20 minutes

Anyone know the correct syntax. I was trying something like:

WHERE timestamp_field > (timestamp now() - interval '20 minutes')

and will continue reading the manual


---------------------------(end of broadcast)---------------------------
TIP 9: In versions below 8.0, the planner will ignore your desire to
      choose an index scan if your joining column's datatypes do not
      match

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux