Re: subquery involving 'now' - Mailing list pgsql-sql

From Gaetano Mendola
Subject Re: subquery involving 'now'
Date
Msg-id 016501c1cab0$46eac390$d28efea9@GMENDOLA2
Whole thread Raw
In response to subquery involving 'now'  (jmycr@cs.com)
List pgsql-sql
<jmycr@cs.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.



pgsql-sql by date:

Previous
From: Stephan Szabo
Date:
Subject: Re: ALTER CONSTRAINT FOREIGN KEY
Next
From: Bo Lorentsen
Date:
Subject: Re: Large data sets and FOR LOOP's