pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Davis <michael.davis@prevuenet.com>
To: pgsql-sql@postgreSQL.org
Subject: RE: [SQL] Comparing Dates to Current Time
Date: Wed, 24 Mar 1999 15:18:16 -0600
Message-ID: <93C04F1F5173D211A27900105AA8FCFC1452D2@lambic.prevuenet.com> (raw)

Try select title from articles where expires > now()::date;

	-----Original Message-----
	From:	Jenny DiBartolomeo [SMTP:jdibartolomeo@agency.com]
	Sent:	Wednesday, March 24, 1999 12:09 PM
	To:	pgsql-sql@postgreSQL.org
	Subject:	[SQL] Comparing Dates to Current Time

	OK... this is probably a trivial one.  In an Oracle query, I might
do the
	following select statement:

	   SELECT title

	     FROM articles

	    WHERE expires > SYSDATE

	How would I do the same thing in Postgres if the column "expires" is
of the
	data type "DATE"?  I've tried everything and read the man pages and
can't
	seem to get it working!  Any help would be VERY APPRECIATED!!!

	Thanks sooooo much for any help you can give me!!!!  Please respond
via
	email to jdibartolomeo@agency.com.

	-Jenny

	------------------------------
	Jennifer DiBartolomeo
	jdibartolomeo@agency.com
	------------------------------



view thread (4+ messages)

Message-ID: <93C04F1F5173D211A27900105AA8FCFC1452D2@lambic.prevuenet.com>
Permalink:  ../93C04F1F5173D211A27900105AA8FCFC1452D2@lambic.prevuenet.com/
Also on:    postgresql.org/message-id/93C04F1F5173D211A27900105AA8FCFC1452D2@lambic.prevuenet.com

 · 

reply

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-sql@postgresql.org
  Cc: michael.davis@prevuenet.com
  Subject: Re: [SQL] Comparing Dates to Current Time
  In-Reply-To: <93C04F1F5173D211A27900105AA8FCFC1452D2@lambic.prevuenet.com>
  References: <93C04F1F5173D211A27900105AA8FCFC1452D2@lambic.prevuenet.com>

* 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