From: Christopher Kings-Lynne <chriskl@familyhealth.com.au>
To: azah azah <izza76@gmail.com>
Cc: pgsql-php@postgresql.org
Subject: Re: No to_days format in postgresql?
Date: Tue, 10 Aug 2004 15:58:54 +0800
Message-ID: <4118803E.9080307@familyhealth.com.au> (raw)
In-Reply-To: <235b1a280408100044251eca07@mail.gmail.com>
References: <235b1a280408100044251eca07@mail.gmail.com>
> I really need help to convert to_days from mysql to postgresql as below:
>
> TO_DAYS(now()) - TO_DAYS(timecheck) <=7
>
> how can i do it in postgresql?
(timecheck - interval '7 days') <= current_timestamp
Chris
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-php@postgresql.org
Cc: chriskl@familyhealth.com.au, izza76@gmail.com
Subject: Re: No to_days format in postgresql?
In-Reply-To: <4118803E.9080307@familyhealth.com.au>
References: <235b1a280408100044251eca07@mail.gmail.com> <4118803E.9080307@familyhealth.com.au>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox