Re: subquery involving 'now'

From: "Gaetano Mendola" <mendola(at)bigfoot(dot)com>
To: <jmycr(at)cs(dot)com>, <pgsql-sql(at)postgresql(dot)org>
Subject: Re: subquery involving 'now'
Date: 2002-03-13 16:58:19
Message-ID: 016501c1cab0$46eac390$d28efea9@GMENDOLA2
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

<jmycr(at)cs(dot)com> wrote:
> SELECT a.backup_id, a.archive_id, a.file_name, a.file_size, b.something
> FROM archive a, burp b
> WHERE a.aname = b.aname and a.backup_date < 'now'::datetime - '(select
maxday_savefile from service) days'::timespan;

Try:

using now() not 'now'::datetime.

Ciao.

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Jan Wieck 2002-03-13 17:35:38 Re: REFERENCES
Previous Message Jan Wieck 2002-03-13 16:29:26 Re: Large data sets and FOR LOOP's