Re: "IS LATER THAN" filter for date column

From: Scott Marlowe <scott(dot)marlowe(at)gmail(dot)com>
To: gvim <gvimrc(at)gmail(dot)com>
Cc: pgsql <pgsql-general(at)postgresql(dot)org>
Subject: Re: "IS LATER THAN" filter for date column
Date: 2011-05-02 02:06:07
Message-ID: BANLkTikGuWWVq5Zr_ytePdnPFeF020WJng@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Sun, May 1, 2011 at 7:37 PM, gvim <gvimrc(at)gmail(dot)com> wrote:
> I've been looking through the Date/Time functions and operators on the docs
> and can't find anything obvious to do this simple task - filter a date
> column for entries which are later than a specified date.

select * from table where datecol > '2001-01-01'::date;

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Greg Smith 2011-05-02 04:31:49 Re: Postgresql, PSN hack and table limits
Previous Message Chris Ernst 2011-05-02 02:05:02 Re: "IS LATER THAN" filter for date column