On 08/12/2014 08:22 PM, Sehrope Sarkuni wrote:
> I'd probably use the ::interval cast syntax though, so something like:
> checkin_time > (CURRENT_DATE - (? * '1 day'::interval))
I only used
INTERVAL '1' DAY
because AFAIK that's the standard form. Given the miserable support for
intervals in other RDBMSes, it doesn't matter much in practice.
--
Craig Ringer http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services