< and > for datetime

From: Sarah Officer <officers(at)aries(dot)tucson(dot)saic(dot)com>
To: pgsql-general(at)postgreSQL(dot)org
Subject: < and > for datetime
Date: 2000-01-20 22:56:24
Message-ID: 38879298.DBEBDF94@aries.tucson.saic.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi all,

I'm trying to find less than and greater than functions for
datetime types. It doesn't look the the time interval operators
would be appropriate, but I haven't found anything else in the
docs. Here's my snippet of plpgsql which fails:

select count(*) into rescount
from currentresults cr, masters m
where cr.ben = new.ben
and m.mi_id = cr.mi_id
and m.idate > mydate;

rescount & mydate are variables. How do I compare dates? I'd be
glad to read the documentation if I could find the right page.

Thanks,

Sarah
officers(at)aries(dot)tucson(dot)saic(dot)com

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Bruce Momjian 2000-01-20 22:58:47 Re: [GENERAL] Unsigned Datatypes
Previous Message Tom Lane 2000-01-20 22:51:43 Re: [HACKERS] Re: [GENERAL] Variable case database names